Opened 16 months ago

Last modified 16 months ago

#5433 new defect

Have default manual URLs redirect to english or browser-requested language if available

Reported by: strk Owned by: robe
Priority: medium Milestone: Website Management, Bots
Component: website Version:
Keywords: Cc:

Description

Urls out there exist that point to:

We want them all to continue working BUT the new layout of chunked html (see #5429) imply that a language tag is now required for the html part (not for images) so the above URLs should redirect to (for english version):

  • /manual-dev/ -> /manual-3.4 (or whatever master branch will be)
  • /manual-3.4/* -> /manual-3.4/$LANG/$1 (only if file does not exist, otherwise it could be an image or a .css file)
  • /docs/ -> /manual-3.3 (or whatever latest stable branch is)

Change History (1)

comment:1 by strk, 16 months ago

I've configured temporary redirects (http 302) for the /docs/manual-dev/ urls. Any request for a file ending in .html and not containing dashes is redirected to under the en/ directory.

The request for the root is also redirected, at the moment, still to en/.

Please give it a try.

What is NOT done yet:

  • special rule for /manual-3.4 (do we need one or let go ?)
  • a plan for when 3.4 becomes stable (the /docs url)
Note: See TracTickets for help on using tickets.