diff --git a/vendors/routes/hasher.js b/vendors/routes/hasher.js index 46ecadcaf..c35956f65 100644 --- a/vendors/routes/hasher.js +++ b/vendors/routes/hasher.js @@ -14,7 +14,7 @@ const _hashValRegexp = /#(.*)$/, _hashRegexp = /^[#/]+/, - _hashTrim = /^\/|\$/g, + _hashTrim = /^\/+/g, _trimHash = hash => hash?.replace(_hashTrim, '') || '', _getWindowHash = () => { //parsed full URL instead of getting window.location.hash because Firefox decode hash value (and all the other browsers don't)