Skip to content

Relative Links No Redirection #2422

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
sjezewski opened this issue Sep 23, 2016 · 7 comments
Closed

Relative Links No Redirection #2422

sjezewski opened this issue Sep 23, 2016 · 7 comments
Labels
Needed: design decision A core team decision is required Needed: more information A reply from issue author is required

Comments

@sjezewski
Copy link

Details

Expected Result

I would expect

http://pachyderm.readthedocs.io/getting_started/getting_started.html

To redirect to the proper default language / version:

http://pachyderm.readthedocs.io/en/latest/getting_started/getting_started.html

Actual Result

a 404

I've found the Redirects section under the admin panel, but I don't see a way to do this for all assets on the site.

E.g. A 'prefix redirect' allows me to do:

faq.html -> /$lang/$version/faq.html

But I want to do this for all pages by default. Is there a way to do this?

@humitos
Copy link
Member

humitos commented Feb 23, 2017

@sjezewski I'm not following you correctly. Why the redirect you suggested is not enough?

@sjezewski
Copy link
Author

I think its possible to do it that way, but unwieldy.

If I have ~500 unique pages on my site, it's kind of a pain to enter 500 new redirect rules to accommodate each page. And harder to keep that list up to date w all the pages (as I add or delete documents from the site).

@humitos
Copy link
Member

humitos commented Jun 7, 2017

It's not the same, but it's related to #2904

@stsewd stsewd added the Needed: design decision A core team decision is required label Jun 25, 2018
@stsewd
Copy link
Member

stsewd commented Jun 25, 2018

This is a new feature and needs a design decision. Related to #2968 and #3465

@stsewd stsewd added Feature New feature and removed Support Support question labels Aug 31, 2018
@stsewd
Copy link
Member

stsewd commented Aug 31, 2018

Although, I think this can be done with our new $rest keyword, see https://docs.readthedocs.io/en/latest/user-defined-redirects.html#exact-redirects

@stsewd stsewd added Needed: more information A reply from issue author is required and removed Feature New feature labels Aug 31, 2018
@stsewd
Copy link
Member

stsewd commented Aug 31, 2018

Ok, I can confirm I was able to make this redirect with this.

screenshot_2018-08-31 edit redirects read the docs

I'm closing this issue, as this can be done with the above redirect, feel free to reopen if you consider

@stsewd stsewd closed this as completed Aug 31, 2018
@humitos
Copy link
Member

humitos commented Sep 4, 2018

I think the redirect needed here is /$rest -> /en/latest/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needed: design decision A core team decision is required Needed: more information A reply from issue author is required
Projects
None yet
Development

No branches or pull requests

3 participants