GeraldWodni / forth-standard.org

Official website of the Forth 2012 Standard, and the Forth200x committee.
9 stars 3 forks source link

Some old links are broken #23

Closed ruv closed 4 years ago

ruv commented 4 years ago

Problem

After moving some contributions to the "proposals" section, the old links are broken.

Example: The message: https://forth-standard.org/proposals/f-r-and-fr-to-support-dynamically-scoped-floating-point-variables#reply-376 The broken link: https://forth-standard.org/standard/intro#reply-375

image

Possible solution

Generate dummy blocks for the moved contributions in the original places with short information that this contribution was moved, and link to the new place. Perhaps only for contributions that have incoming links.

The server-side redirection cannot be used since the links contain fragment identifiers (that are not passed to the server).

GeraldWodni commented 4 years ago

Forward- and Back-links provided for proposals. Forward-links provided for replies to proposals.

Note: as contributions and replies are referred toi by url fragments (anchors) this has to be done client-side, no server-side redirection possible as the url fragment is not transferred to the server.

ruv commented 4 years ago

Very nice, thank you!

Just to note (I recalled), an alternative solution would be to fix the links directly in the source XHTML code in the database by means of XSLT or XQury. But, it requires more manual work, and the external inbound links to the moved contributions will stay broken.