Skip to content

Commit 94788f1

Browse files
committed
fix(web): return void on redirect
1 parent 44a5f45 commit 94788f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

templates/web/src/services/template.ts.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export class {{ service.name | caseUcfirst }} {
8686
{%~ if method.type == 'webAuth' %}
8787
if (typeof window !== 'undefined' && window?.location) {
8888
window.location.href = uri.toString();
89+
return;
8990
} else {
9091
return uri.toString();
9192
}

0 commit comments

Comments
 (0)