File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import react from "@astrojs/react";
7
7
export default defineConfig ( {
8
8
site : "https://derwebcoder.github.io" ,
9
9
base : "sparktag" ,
10
+ trailingSlash : "always" ,
10
11
integrations : [
11
12
tailwind ( {
12
13
// disabling this because we have the src/styles/global.css file including the base styles,
Original file line number Diff line number Diff line change @@ -26,8 +26,11 @@ const { title } = Astro.props;
26
26
<script >
27
27
import { isAuthenticated } from "../scripts/auth/secret";
28
28
29
- const authUrl = import.meta.env.BASE_URL + "/auth";
30
- if (window.location.pathname === authUrl || (await isAuthenticated())) {
29
+ const authUrl = import.meta.env.BASE_URL + "auth/";
30
+ if (
31
+ window.location.pathname.startsWith(authUrl) ||
32
+ (await isAuthenticated())
33
+ ) {
31
34
document.body.classList.remove("hidden");
32
35
} else {
33
36
window.location.href = authUrl;
You can’t perform that action at this time.
0 commit comments