partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit cddb4b5728dbe36c5135aa6c45d43fc6a5d3b20a
parent ff2b383b57ac2fc384eff398aed504d6b1741fe1
Author: Felicitus <felicitus@felicitus.org>
Date:   Sun, 15 Nov 2015 18:03:54 +0100

Replace setup/ and setup in the path as well, relates to #480

Diffstat:
Mweb/setup/js/SetupWizard.js | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/web/setup/js/SetupWizard.js b/web/setup/js/SetupWizard.js @@ -43,7 +43,9 @@ Ext.define('PartKeeprSetup.SetupWizard', { { this.items = this.setupCards(); this.on("submit", function () { - var target = window.location.href.replace(/setup\/index.html/g, ""); + var target = window.location.href.replace(/setup\/index.html$/, ""); + target.replace(/setup\/$/, ""); + target.replace(/setup$/, ""); window.location.href = target; });