Automatically remove index.html from url

This commit is contained in:
Tracker-Friendly 2024-03-12 18:49:14 +00:00
parent 7fc62fff79
commit 491378bbd2
7 changed files with 87 additions and 3 deletions

View File

@ -8,6 +8,18 @@
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" type="text/css" href="../static/css/style.css" />
<script type="text/javascript" src="../static/js/crypto-js.js"></script>
<script>
if (origin !== "null") {
// Get the current URL
var currentUrl = window.location.href;
// Remove '/index.html' from the current URL
var newUrl = currentUrl.replace('/index.html', '');
// Redirect to the new URL
window.location.href = newUrl;
}
</script>
</head>
<body>

View File

@ -7,6 +7,18 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" type="text/css" href="../static/css/style.css" />
<script>
if (origin !== "null") {
// Get the current URL
var currentUrl = window.location.href;
// Remove '/index.html' from the current URL
var newUrl = currentUrl.replace('/index.html', '');
// Redirect to the new URL
window.location.href = newUrl;
}
</script>
</head>
<body>

View File

@ -9,6 +9,18 @@
<link rel="stylesheet" type="text/css" href="./static/css/style.css" />
<meta content="Burgernotes" property="og:title" />
<meta content="A simple note-taking app!" property="og:description" />
<script>
if (origin !== "null") {
// Get the current URL
var currentUrl = window.location.href;
// Remove '/index.html' from the current URL
var newUrl = currentUrl.replace('/index.html', '');
// Redirect to the new URL
window.location.href = newUrl;
}
</script>
</head>
<body>
@ -37,9 +49,9 @@
</div>
</div>
<div class="links">
<a href="https://centrifuge.hectabit.org/hectabit/burgernotes"><img src="/static/svg/code.svg">Source Code</a>
<a href="../privacy/index.html"><img src="/static/svg/info.svg">Privacy &amp; Terms</a>
<a href="https://discord.gg/8EbKTjmH2d"><img src="/static/svg/forum.svg">Discord</a>
<a href="https://centrifuge.hectabit.org/hectabit/burgernotes"><img src="./static/svg/code.svg">Source Code</a>
<a href="../privacy/index.html"><img src="./static/svg/info.svg">Privacy &amp; Terms</a>
<a href="https://discord.gg/8EbKTjmH2d"><img src="./static/svg/forum.svg">Discord</a>
</div>
<br>
</body>

View File

@ -19,6 +19,18 @@
border-radius: 8px;
}
</style>
<script>
if (origin !== "null") {
// Get the current URL
var currentUrl = window.location.href;
// Remove '/index.html' from the current URL
var newUrl = currentUrl.replace('/index.html', '');
// Redirect to the new URL
window.location.href = newUrl;
}
</script>
</head>
<body>

View File

@ -5,6 +5,18 @@
<title>Burgernotes</title>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<script>
if (origin !== "null") {
// Get the current URL
var currentUrl = window.location.href;
// Remove '/index.html' from the current URL
var newUrl = currentUrl.replace('/index.html', '');
// Redirect to the new URL
window.location.href = newUrl;
}
</script>
<head>
Logging out..
<script>

View File

@ -7,6 +7,18 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" type="text/css" href="../static/css/style.css" />
<script>
if (origin !== "null") {
// Get the current URL
var currentUrl = window.location.href;
// Remove '/index.html' from the current URL
var newUrl = currentUrl.replace('/index.html', '');
// Redirect to the new URL
window.location.href = newUrl;
}
</script>
</head>
<body>

View File

@ -19,6 +19,18 @@
border-radius: 8px;
}
</style>
<script>
if (origin !== "null") {
// Get the current URL
var currentUrl = window.location.href;
// Remove '/index.html' from the current URL
var newUrl = currentUrl.replace('/index.html', '');
// Redirect to the new URL
window.location.href = newUrl;
}
</script>
</head>
<body>