diff --git a/site/src/pages/continue-page.tsx b/site/src/pages/continue-page.tsx
index 33b79ae..6a9a662 100644
--- a/site/src/pages/continue-page.tsx
+++ b/site/src/pages/continue-page.tsx
@@ -50,26 +50,6 @@ export const ContinuePage = () => {
);
}
- if (
- window.location.protocol === "https:" &&
- uri.protocol === "http:"
- ) {
- return (
-
-
- Insecure Redirect
-
-
- Your are logged in but trying to redirect from https to{" "}
- http, please click the button to redirect.
-
-
-
- );
- }
-
if (disableContinue) {
window.location.href = redirectUri;
return (
@@ -82,6 +62,23 @@ export const ContinuePage = () => {
);
}
+ if (window.location.protocol === "https:" && uri.protocol === "http:") {
+ return (
+
+
+ Insecure Redirect
+
+
+ Your are trying to redirect from https to{" "}
+ http, are you sure you want to continue?
+
+
+
+ );
+ }
+
return (