saasufy-components 2.6.1 → 2.6.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/app-router.js +2 -2
- package/package.json +1 -1
package/app-router.js
CHANGED
|
@@ -153,7 +153,7 @@ export class AppRouter extends SocketConsumer {
|
|
|
153
153
|
let maxRedirects = Number(this.getAttribute('max-redirects') || DEFAULT_MAX_REDIRECTS);
|
|
154
154
|
|
|
155
155
|
let redirectCount;
|
|
156
|
-
for (redirectCount = 0; redirectCount
|
|
156
|
+
for (redirectCount = 0; redirectCount <= maxRedirects; redirectCount++) {
|
|
157
157
|
let authRedirect = this.socket && this.socket.authState === 'authenticated' ?
|
|
158
158
|
pageTemplate.getAttribute('auth-redirect') : null;
|
|
159
159
|
let noAuthRedirect = this.socket && this.socket.authState !== 'authenticated' ?
|
|
@@ -213,7 +213,7 @@ export class AppRouter extends SocketConsumer {
|
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
|
|
216
|
-
if (redirectCount
|
|
216
|
+
if (redirectCount > maxRedirects) {
|
|
217
217
|
throw new Error(
|
|
218
218
|
`The number of redirects exceeded the maximum amount of ${maxRedirects}`
|
|
219
219
|
);
|