Skip to content

Commit 96197e2

Browse files
author
fadeouter
committed
update
1 parent d0905fe commit 96197e2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nk/redirect.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ fetch('/nk/urls.md')
1616
if (key && url) {
1717
mappings[key.trim()] = url.trim();
1818
}
19+
console.log(key, url)
1920
});
2021

2122
// Get the last part of the URL path
2223
const path = window.location.pathname.split('/').filter(Boolean).pop();
24+
console.log(path)
2325

2426
// Check if the path exists in the mappings and redirect
2527
if (path in mappings) {

0 commit comments

Comments
 (0)