Skip to content

Commit 98ace54

Browse files
committed
ends with app.github.dev
1 parent 4a45c07 commit 98ace54

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

reflex/utils/codespaces.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ def redirect_script() -> str:
5454
if (!sameHostnameDifferentPort(thisUrl, redirect_to)) {{
5555
return;
5656
}}
57+
if (!redirect_to.hostname.endsWith(".app.github.dev")) {{
58+
return;
59+
}}
5760
a.href = redirect_to.href;
5861
}} else if (!window.location.href.startsWith(url)) {{
5962
a.href = url + `?redirect_to=${{window.location.href}}`

0 commit comments

Comments
 (0)