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

Add redirect to specific page in default language/version (#282) #285

Merged
merged 1 commit into from Nov 13, 2012
Merged

Conversation

sampsyo
Copy link
Contributor

@sampsyo sampsyo commented Oct 21, 2012

As I suggested in #282, this adds a URL pattern that can redirect to a specific
page under the default version. Using "/page/..." either on readthedocs.org or
a subdomain redirects.

Note that the redirect goes to "/docs/<project_slug>/..." even on subdomains.
This could be fixed by using a different URL pattern name for the subdomain
URLs and specifically requesting that in the call to reverse().

As I suggested in #282, this adds a URL pattern that can redirect to a specific
page under the default version. Using "/page/..." either on readthedocs.org or
a subdomain redirects.

Note that the redirect goes to "/docs/<project_slug>/..." even on subdomains.
This could be fixed by using a different URL pattern name for the subdomain
URLs and specifically requesting that in the call to `reverse()`.
@ericholscher
Copy link
Member

Bah sorry I forgot about this. Will look at it this weekend & get it merged.

ericholscher added a commit that referenced this pull request Nov 13, 2012
Add redirect to specific page in default language/version (#282)
@ericholscher ericholscher merged commit b479f53 into readthedocs:master Nov 13, 2012
@sampsyo
Copy link
Contributor Author

sampsyo commented Nov 13, 2012

Awesome; thanks!!

@ericholscher
Copy link
Member

Yea, I had to add a basic patch to the subdomain stuff, but it should be
working fine now and in production. Thanks for the patch.

On Mon, Nov 12, 2012 at 9:45 PM, Adrian Sampson notifications@github.comwrote:

Awesome; thanks!!


Reply to this email directly or view it on GitHubhttps://github.com//pull/285#issuecomment-10316440.

Eric Holscher
Engineer at Urban Airship in Portland, Or
http://ericholscher.com

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

Successfully merging this pull request may close these issues.

None yet

2 participants