Skip to content

Commit

Permalink
Merge pull request #8 from Lombiq/issue/NEST-113
Browse files Browse the repository at this point in the history
NEST-113: Fixing wrong path
  • Loading branch information
wAsnk authored Jan 29, 2024
2 parents f65d868 + 51d3b4a commit f8394e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Lombiq.Walkthroughs/Assets/Scripts/walkthroughs.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ jQuery(($) => {

// eslint-disable-next-line prefer-destructuring
goToRelativePageString = window.location.href.split(splitString)[0];

if (!goToRelativePageString.endsWith('/')) {
goToRelativePageString += '/';
}
}

const goToRelativePageURL = new URL(goToRelativePageString + (nextPage ?? ''));
Expand Down

0 comments on commit f8394e9

Please sign in to comment.