framework7 7.0.1 → 7.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "framework7",
3
- "version": "7.0.1",
3
+ "version": "7.0.2",
4
4
  "description": "Full featured mobile HTML framework for building iOS & Android apps",
5
5
  "type": "module",
6
6
  "exports": {
@@ -302,6 +302,6 @@
302
302
  "path-to-regexp": "^6.2.0",
303
303
  "skeleton-elements": "^4.0.0",
304
304
  "ssr-window": "^4.0.2",
305
- "swiper": "^8.1.1"
305
+ "swiper": "^8.1.4"
306
306
  }
307
307
  }
package/shared/history.js CHANGED
@@ -106,11 +106,22 @@ const History = {
106
106
 
107
107
  push(viewId, viewState, url) {
108
108
  const window = getWindow();
109
+ const document = getDocument();
110
+ /* eslint-disable no-param-reassign */
109
111
 
110
112
  if (url.substr(-3) === '#!/') {
111
- // eslint-disable-next-line
112
113
  url = url.replace('#!/', '');
114
+
115
+ if (url === '') {
116
+ url = document.location.href;
117
+
118
+ if (url.includes('#!/')) {
119
+ url = document.location.href.split('#!/')[0];
120
+ }
121
+ }
113
122
  }
123
+ /* eslint-enable no-param-reassign */
124
+
114
125
 
115
126
  if (!History.allowChange) {
116
127
  History.queue.push(() => {