Skip to content

Commit

Permalink
Document redirection link
Browse files Browse the repository at this point in the history
The redirection may be broken if the javascript of the page cannot be
executed because of a [middleware](https://backstage.io/docs/features/techdocs/)
or if the browser of the client disabled it. Also note that the meta
redirect is set as [deprecated by the W3C](https://www.w3.org/TR/WCAG10-HTML-TECHS/#meta-element).

With those conditions, the human may land on a page which is in fact a
dead end because no information is provided to tell him what should
have happened.

This PR provide a link to clic to follow manually the redirection.
  • Loading branch information
Damien Plard committed Mar 19, 2024
1 parent e330ad1 commit 68dd8b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkdocs_redirects/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<meta http-equiv="refresh" content="0; url={url}">
</head>
<body>
Redirecting...
You're being redirected to a <a href="{url}">new destination</a>.
</body>
</html>
"""
Expand Down

0 comments on commit 68dd8b8

Please sign in to comment.