@steroidsjs/core 2.2.70 → 2.2.71
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/package.json +1 -1
- package/reducers/router.js +3 -1
package/package.json
CHANGED
package/reducers/router.js
CHANGED
|
@@ -96,7 +96,9 @@ exports.buildUrl = buildUrl;
|
|
|
96
96
|
var checkIsActive = function (state, item) {
|
|
97
97
|
// Check is active
|
|
98
98
|
var pathname = !process.env.IS_SSR && window.location.protocol === 'file:'
|
|
99
|
-
? window.location.hash
|
|
99
|
+
? window.location.hash
|
|
100
|
+
.replace(/^#/, '')
|
|
101
|
+
.replace(/\?.*$/, '')
|
|
100
102
|
: get_1["default"](state, 'location.pathname');
|
|
101
103
|
var checkActive = function (subPathname, subItem) {
|
|
102
104
|
var match = react_router_1.matchPath(subPathname, pick_1["default"](subItem, ['exact', 'strict', 'path']));
|