Automatically remove index.html from url
This commit is contained in:
parent
7fc62fff79
commit
491378bbd2
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
18
index.html
18
index.html
|
@ -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 & 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 & Terms</a>
|
||||
<a href="https://discord.gg/8EbKTjmH2d"><img src="./static/svg/forum.svg">Discord</a>
|
||||
</div>
|
||||
<br>
|
||||
</body>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Reference in New Issue