Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

URLs sometimes get an IP instead of a tenant's subdomain #17

Open
edwardsharp opened this issue Dec 12, 2015 · 3 comments
Open

URLs sometimes get an IP instead of a tenant's subdomain #17

edwardsharp opened this issue Dec 12, 2015 · 3 comments

Comments

@edwardsharp
Copy link

edwardsharp commented Dec 12, 2015

Hello,

I've been using this gem for a few months in development with spree 3.0 and have been noticing this very subtle problem where sometimes the URLs in the app end up with the IP address of the server and not the tenant's subdomain. I have not had much luck in trying to debug the issue here. I've got some suspicion that the during the caching process the tenant isn't getting evaluated. If I clear the cache through spree's admin interface the correct URLs get rendered. So I wonder if this is related to issue #1?

So far my solution is to patch the spree views with _path instead of _url routes. But I'm worried that this will burn me on some other places that I haven't caught/patched yet.

If there's anything anyone can suggest as far as ways to debug this I'd greatly appreciate it. I've yet to find any way to reproduce this, so if there's any strategy on that, it would be tremendously useful, too.

@pkallberg
Copy link

@edwardsharp I've been seeing this exact same issue, any chance you found a solution?

@edwardsharp
Copy link
Author

@pkallberg using _path instead of _url routes. can you explain your situation more?

@pkallberg
Copy link

@edwardsharp nice one, I see this was addressed in the 3-0-stable three days ago too: spree/spree@e127d03

I switched to the _path and now looks good.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants