Skip to content

Commit

Permalink
Add 404 page for redirection
Browse files Browse the repository at this point in the history
  • Loading branch information
harishmohanraj committed Dec 21, 2024
1 parent 9823bb8 commit a4c9d4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
const newDomain = 'https://docs.ag2.ai';
let path = window.location.pathname;
const hash = window.location.hash;
// Remove /ag2/ prefix and trailing slash
path = path.replace(/^\/ag2\//, '/').replace(/\/$/, "");
Expand All @@ -59,7 +59,7 @@ jobs:
// Handle -index and create final URL with hash
const redirectUrl = (newDomain + path).replace(/-index$/, "/index") + hash;
window.location.href = redirectUrl;
</script>
<title>Page Redirection</title>
Expand Down

0 comments on commit a4c9d4a

Please sign in to comment.