@next-core/brick-kit 2.103.2 → 2.103.3

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/dist/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createBrowserHistory, locationsAreEqual, createPath } from 'history';
1
+ import { parsePath, createBrowserHistory, locationsAreEqual, createPath } from 'history';
2
2
  import _objectSpread from '@babel/runtime/helpers/objectSpread2';
3
3
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
4
4
  import _asyncToGenerator$4 from '@babel/runtime/helpers/asyncToGenerator';
@@ -3110,12 +3110,12 @@ function standaloneHistoryOverridden(browserHistory) {
3110
3110
  var pathIsString = typeof path === "string";
3111
3111
 
3112
3112
  if (pathIsString) {
3113
- pathname = path;
3113
+ pathname = parsePath(path).pathname;
3114
3114
  } else {
3115
3115
  pathname = path.pathname;
3116
3116
  }
3117
3117
 
3118
- if (_internalApiHasMatchedApp(pathname)) {
3118
+ if (pathname === "" || _internalApiHasMatchedApp(pathname)) {
3119
3119
  return (method === "push" ? originalPush : originalReplace)(path, state);
3120
3120
  } // Going to outside apps.
3121
3121