Skip to content
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

Closed
jlongster opened this issue Mar 15, 2012 · 4 comments
Closed

www-dev is auto-prefixing /b/ magically #23

jlongster opened this issue Mar 15, 2012 · 4 comments

Comments

@jlongster
Copy link
Contributor

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).

@jlongster
Copy link
Contributor Author

@fwenzel
Copy link
Member

fwenzel commented Mar 15, 2012

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:

https://docs.djangoproject.com/en/dev/howto/deployment/fastcgi/?from=olddocs#forcing-the-url-prefix-to-a-particular-value

The use case for that option is not fastcgi-based servers (read: not Apache), but it should work here too.

@jlongster
Copy link
Contributor Author

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.

@jlongster
Copy link
Contributor Author

Closing, seems to be consistently working now, so that works for me.

jpetto added a commit that referenced this issue Oct 15, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants