We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5bd328 commit 0a9aed0Copy full SHA for 0a9aed0
package.json
@@ -1,7 +1,7 @@
1
{
2
"name": "@puzzle-js/client-lib",
3
"main": "dist/index.js",
4
- "version": "1.2.2",
+ "version": "1.2.3",
5
"author": "<emre.kul@trendyol.com>",
6
"license": "MIT",
7
"repository": {
@@ -34,4 +34,4 @@
34
"webpack": "^4.30.0",
35
"webpack-cli": "^3.3.4"
36
}
37
-}
+}
src/core.ts
@@ -157,6 +157,10 @@ export class Core extends Module {
157
});
158
159
160
+ if (res['$headers'] && res['$headers'].location) {
161
+ return location.href = res['$headers'].location;
162
+ }
163
+
164
Object.keys(res).forEach(key => {
165
if (!key.startsWith('$')) {
166
const container = document.querySelector(this.getFragmentContainerSelector(fragment, key));
0 commit comments