1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-08-13 18:50:53 +00:00

Revert permalinks

This commit is contained in:
Unrud 2020-02-27 14:55:03 +01:00
parent 2d2c38d029
commit 053dc33dbb
3 changed files with 3 additions and 6 deletions

View file

@ -13,7 +13,7 @@ window.addEventListener("load", function() {
} }
select.addEventListener("change", function() { select.addEventListener("change", function() {
if (select.value !== documentBranch) { if (select.value !== documentBranch) {
location.assign(select.value); location.assign(select.value + ".html");
select.value = documentBranch; select.value = documentBranch;
} }
}); });

View file

@ -124,9 +124,9 @@ def make_index_html(branch):
return """\ return """\
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<meta http-equiv="Refresh" content="0; url=%s"> <meta http-equiv="Refresh" content="0; url=%s.html">
<title>Redirect</title> <title>Redirect</title>
<p>Please follow <a href="%s">this link</a>.</p> <p>Please follow <a href="%s.html">this link</a>.</p>
""" % (branch, branch) """ % (branch, branch)

View file

@ -1,6 +1,3 @@
---
permalink: /beta/$branch$/
---
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">