WycliffeAssociates / tx-manager

Codebase for translationConvertor (tX)
Other
0 stars 2 forks source link

Use HTTP redirection from index.html to main content #7

Open aunger opened 4 years ago

aunger commented 4 years ago

Use 302 HTTP redirection to load the main page in Live Reader, instead of copying its contents into index.html.

This change was part of a false start to fixing a linking error, but it turned out to be a nice option.

It's certainly just an option though.

Advantages:

  1. Jumping to anchors from the index previously required another page load, but now that page is already the active one, so the browser only needs to scroll the target into view.
  2. There are no longer two identical URLs with the main page content.

Disadvantage:

  1. When visiting the manual's top level, the URL will look uglier. Instead of ending with /index.html or /, it will end with the main page's filename (/01-wycliffe%20associates%20translation.html in the case of tM).

This change is Reviewable