From fa86f0d24852f57ab9e5217271b7494033d6186c Mon Sep 17 00:00:00 2001 From: Norbert Renner Date: Mon, 8 Oct 2018 21:19:18 +0200 Subject: [PATCH] Restore not adding custom profile to URL (#66) See https://github.com/nrenner/brouter-web/commit/1527a07d0e2fa4bbcd9cc187d75bf64503f31fda --- js/router/BRouter.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/router/BRouter.js b/js/router/BRouter.js index 5e55cd5..077221b 100644 --- a/js/router/BRouter.js +++ b/js/router/BRouter.js @@ -57,6 +57,11 @@ L.BRouter = L.Class.extend({ delete params.profile; if (params.alternativeidx == 0) delete params.alternativeidx; + + // don't add custom profile, as these are only stored temporarily + if (params.profile && params.profile.substring(0, 7) === 'custom_') { + delete params.profile; + } } return params;