Skip to content

Better docs for redirects #4029

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

Closed
stsewd opened this issue Apr 26, 2018 · 0 comments
Closed

Better docs for redirects #4029

stsewd opened this issue Apr 26, 2018 · 0 comments
Labels
Needed: documentation Documentation is required

Comments

@stsewd
Copy link
Member

stsewd commented Apr 26, 2018

https://docs.readthedocs.io/en/latest/user-defined-redirects.html#redirect-types doesn't mention that Page redirect and Exact redirect can redirect to an external URL, not just to a rtd page #4008 (comment).

Also, the Exact redirect has an undocumented feature

https://github.com/rtfd/readthedocs.org/blob/e36955f737b810cbda7a07326b933f8cf43bb698/readthedocs/redirects/models.py#L154-L159

Where you can use $rest on the from url to do a redirection similar to Prefix redirect

From url: /dev/v1/$rest
To url: /en/latest/

docs.readthedocs.io/dev/v1/install.html -> docs.readthedocs.io/en/latest/install.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needed: documentation Documentation is required
Projects
None yet
Development

No branches or pull requests

1 participant