Skip to content

Commit

Permalink
Fixed 404.html
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitmalhotra1420 authored May 20, 2024
1 parent 3ef5cc2 commit af3794a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
// https://username.github.io/repo-name/?/one/two&a=b~and~c=d#qwe
// Otherwise, leave pathSegmentsToKeep as 0.

var l = window.location;

var pathSegmentsToKeep = l.pathname.includes('/pr-preview/') ? 4 : 0;

// Check if the URL has already been transformed
Expand Down

0 comments on commit af3794a

Please sign in to comment.