Skip to content

Commit

Permalink
different setup
Browse files Browse the repository at this point in the history
  • Loading branch information
rajbos committed Aug 21, 2024
1 parent 85db4be commit 9cc756e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@

// Construct the new URL (only needed for forks with a subfolder, should not be used on https://github-copilot.xebia.ms!)
let basePath = '/';
if (!pathname.startsWith('https://github-copilot.xebia.ms')) {
// check if the url is for prod
if (!window.location.hostname === 'github-copilot.xebia.ms') {
// Redirect to the root of the fork
basePath = '/copilot-videos/#' + pathname.replace('copilot-videos', '');
}
Expand Down

0 comments on commit 9cc756e

Please sign in to comment.