Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 0 additions & 88 deletions .github/workflows/main-branch.yml

This file was deleted.

2 changes: 1 addition & 1 deletion AI/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
);

if (!hasCookie && !isFileProtocol) {
const fallbackUrl = new URL('../index.html', window.location.href);
const fallbackUrl = new URL('../', window.location.href);
window.location.replace(fallbackUrl.toString());
}
} catch (error) {
Expand Down
6 changes: 4 additions & 2 deletions landing.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,10 @@ document.addEventListener('DOMContentLoaded', () => {
document.cookie = "checks-passed=true;path=/";
// Redirect to the AI page relative to the current location so the
// experience keeps working when the site is hosted from a
// subdirectory (such as GitHub Pages).
const launchUrl = new URL('./AI/index.html', window.location.href);
// subdirectory (such as GitHub Pages). We point at the directory
// itself so browsers don't expose the underlying index.html file
// in the address bar.
const launchUrl = new URL('./AI/', window.location.href);
window.location.assign(launchUrl.toString());
}
});
Expand Down