Add rel.canonical to redirects; Added alias for internal macros

This commit is contained in:
2022-11-02 00:17:36 +01:00
parent f7773ea226
commit 4187e0647d
5 changed files with 14 additions and 5 deletions

View File

@ -25,11 +25,12 @@ RedirectPageTemplate = """\
<!DOCTYPE html>
<html>
<head>
<title>{TitlePrefix}Redirect</title>
<meta http-equiv="refresh" content="0; url='{DestURL}'" />
<title>{TitlePrefix}Redirect</title>
<link rel="canonical" href="{SiteDomain}/{DestURL}">
<meta http-equiv="refresh" content="0; url='{DestURL}'">
</head>
<body>
<p><a href="{DestURL}">{StrClick}</a> {StrRedirect}.</p>
<p><a href="{DestURL}">{StrClick}</a> {StrRedirect}.</p>
</body>
</html>
"""