[postgis-tickets] [PostGIS] #5433: Have default manual URLs redirect to english or browser-requested language if available

PostGIS trac at osgeo.org
Wed Jul 5 09:44:23 PDT 2023


#5433: Have default manual URLs redirect to english or browser-requested language
if available
---------------------+--------------------------------------
 Reporter:  strk     |      Owner:  robe
     Type:  defect   |     Status:  new
 Priority:  medium   |  Milestone:  Website Management, Bots
Component:  website  |    Version:
 Keywords:           |
---------------------+--------------------------------------
 Urls out there exist that point to:

  - https://postgis.net/docs/manual-3.4/ST_Contains.html (master branch)
  - https://postgis.net/docs/manual-3.4/images/st_contains02.png
  - https://postgis.net/docs/manual-dev/ST_Contains.html (alias of master
 branch)
  - https://postgis.net/docs/manual-dev/images/st_contains02.png
  - https://postgis.net/docs/ST_Contains.html (latest stable branch)
  - https://postgis.net/docs/images/st_contains02.png

 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)
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5433>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list