Skip to content

Commit b58bfe9

Browse files
committed
Reduce white screen on redirect
1 parent 58b971e commit b58bfe9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

public/redirect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ const url = window.location;
22

33
if (url.pathname.includes('wiki/') && !url.pathname.includes('.html')) {
44
const redirectUrl = `${url.pathname.toLocaleLowerCase()}.html`;
5-
window.location.href = redirectUrl;
5+
window.location.replace(redirectUrl);
66
}

src/pages/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const features = [
8383
<div class="flex gap-6 items-center flex-col sm:flex-row">
8484
<a
8585
class="hover:bg-primary bg-primary-darker transition-colors duration-200 ease-in-out py-4 px-6 font-bold text-3xl uppercase rounded-lg shadow-sm"
86-
href="/nodify/wiki/getting-started"
86+
href="/nodify/wiki/getting-started.html"
8787
>
8888
Get started
8989
</a>

0 commit comments

Comments
 (0)