From 51d3b4aa97d8d33f80f602581081993a6a20e99e Mon Sep 17 00:00:00 2001 From: Szabolcs Deme Date: Mon, 29 Jan 2024 01:57:18 +0100 Subject: [PATCH] Fixing wrong path --- Lombiq.Walkthroughs/Assets/Scripts/walkthroughs.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Lombiq.Walkthroughs/Assets/Scripts/walkthroughs.js b/Lombiq.Walkthroughs/Assets/Scripts/walkthroughs.js index ba33e8e..252395a 100644 --- a/Lombiq.Walkthroughs/Assets/Scripts/walkthroughs.js +++ b/Lombiq.Walkthroughs/Assets/Scripts/walkthroughs.js @@ -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 ?? ''));