-
Notifications
You must be signed in to change notification settings - Fork 914
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
www-dev is auto-prefixing /b/ magically #23
Comments
Example: http://www-dev.allizom.org/en-US/b2g/ -> "About" link is http://www-dev.allizom.org/en-US/b2g/about/ http://www-dev.allizom.org/b/en-US/b2g/ -> "About" link is http://www-dev.allizom.org/b/en-US/b2g/about/ |
Uh, actually this is kind of how it's been working since the beginning, and that's expected behavior from Django's wsgi handler. If you want to enforce a prefix (even if that is empty), then look at: The use case for that option is not fastcgi-based servers (read: not Apache), but it should work here too. |
It wasn't working like this a few weeks ago which is why I patched url() to auto-prefix it on the dev site. So something changed recently, but if it's django's wsgi stuff reading the SCRIPT_URL, that's cool. |
Closing, seems to be consistently working now, so that works for me. |
In the past few weeks, the www-dev site started auto-prefix /b/ to links when the page is served up from /b/. If it's not served from /b/ it doesn't prepend /b/ to the links.
Magic.
And I hate magic! I want to know what's doing this. I had built in the auto-prefixing but it broke when this started happened (urls had TWO /b/ in them).
The text was updated successfully, but these errors were encountered: