@tinkoff/router 0.5.204 → 0.6.105
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.
|
@@ -137,7 +137,7 @@ class ClientRouter extends AbstractRouter {
|
|
|
137
137
|
// on CSR fallback initialization, if we found a redirect,
|
|
138
138
|
// we need to make hard reload for prevent current page rendering
|
|
139
139
|
if (this.fullRehydrationInProcess) {
|
|
140
|
-
window.location.replace(target.
|
|
140
|
+
window.location.replace(this.resolveUrl(target).href);
|
|
141
141
|
// prevent routing from any continues navigation returning promise which will be not resolved
|
|
142
142
|
return new Promise(() => { });
|
|
143
143
|
}
|
package/lib/router/client.es.js
CHANGED
|
@@ -137,7 +137,7 @@ class ClientRouter extends AbstractRouter {
|
|
|
137
137
|
// on CSR fallback initialization, if we found a redirect,
|
|
138
138
|
// we need to make hard reload for prevent current page rendering
|
|
139
139
|
if (this.fullRehydrationInProcess) {
|
|
140
|
-
window.location.replace(target.
|
|
140
|
+
window.location.replace(this.resolveUrl(target).href);
|
|
141
141
|
// prevent routing from any continues navigation returning promise which will be not resolved
|
|
142
142
|
return new Promise(() => { });
|
|
143
143
|
}
|
package/lib/router/client.js
CHANGED
|
@@ -141,7 +141,7 @@ class ClientRouter extends abstract.AbstractRouter {
|
|
|
141
141
|
// on CSR fallback initialization, if we found a redirect,
|
|
142
142
|
// we need to make hard reload for prevent current page rendering
|
|
143
143
|
if (this.fullRehydrationInProcess) {
|
|
144
|
-
window.location.replace(target.
|
|
144
|
+
window.location.replace(this.resolveUrl(target).href);
|
|
145
145
|
// prevent routing from any continues navigation returning promise which will be not resolved
|
|
146
146
|
return new Promise(() => { });
|
|
147
147
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinkoff/router",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.105",
|
|
4
4
|
"description": "router",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"watch": "tsc -w"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@tinkoff/hook-runner": "0.
|
|
25
|
-
"@tinkoff/react-hooks": "0.
|
|
26
|
-
"@tinkoff/url": "0.
|
|
24
|
+
"@tinkoff/hook-runner": "0.8.1",
|
|
25
|
+
"@tinkoff/react-hooks": "0.5.0",
|
|
26
|
+
"@tinkoff/url": "0.12.1",
|
|
27
27
|
"@tinkoff/utils": "^2.1.2",
|
|
28
28
|
"use-sync-external-store": "^1.4.0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@tramvai/core": "
|
|
31
|
+
"@tramvai/core": "6.62.0",
|
|
32
32
|
"react": ">=16.14.0",
|
|
33
33
|
"tslib": "^2.4.0"
|
|
34
34
|
},
|