@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steroidsjs/core",
3
- "version": "2.2.70",
3
+ "version": "2.2.71",
4
4
  "description": "",
5
5
  "author": "Vladimir Kozhin <hello@kozhindev.com>",
6
6
  "repository": {
@@ -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.replace(/^#/, '')
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']));