@akc42/app-utils 4.2.1 → 4.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/location.js +1 -1
- package/package.json +1 -1
- package/route.js +1 -1
package/location.js
CHANGED
|
@@ -55,7 +55,7 @@ export function disconnectUrl() {
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
function urlChanged() {
|
|
58
|
-
let path = window.
|
|
58
|
+
let path = window.location.pathname;
|
|
59
59
|
const slashIndex = path.lastIndexOf('/');
|
|
60
60
|
if (path.substring(slashIndex + 1).indexOf('.') >= 0) {
|
|
61
61
|
//we have a '.' in the last part of the path, so cut off this segment
|
package/package.json
CHANGED
package/route.js
CHANGED
|
@@ -73,7 +73,7 @@ export default class Route {
|
|
|
73
73
|
if (j <= 0) {
|
|
74
74
|
return this._clearOutActive();
|
|
75
75
|
}
|
|
76
|
-
let segment = urlPieces.shift();
|
|
76
|
+
let segment = decodeURIComponent(urlPieces.shift());
|
|
77
77
|
j--;
|
|
78
78
|
if (matchedPieces[i].length !== 0) {
|
|
79
79
|
if (matchedPieces[i].substring(0,1) === ':') {
|