30 lines
925 B
HTML
30 lines
925 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>OAuth Redirect</title>
|
|
<meta http-equiv="refresh" content="0; url=/#/auth">
|
|
<script>
|
|
"use strict";
|
|
|
|
// Providers redirect to a path without URL fragments (#). Our app uses hash routing.
|
|
// Bridge /oauth/<provider>[/]?... -> /#/oauth/<provider>?...
|
|
(() => {
|
|
try {
|
|
// Normalize trailing slash so /oauth/google/ and /oauth/google both map to the same route.
|
|
let path = window.location.pathname || "/";
|
|
path = path.replace(/\/$/, "");
|
|
|
|
const search = window.location.search || "";
|
|
const target = `/#${path}${search}`;
|
|
window.location.replace(target);
|
|
} catch (_e) {
|
|
window.location.replace("/#/auth");
|
|
}
|
|
})();
|
|
</script>
|
|
</head>
|
|
<body>Redirecting…</body>
|
|
</html>
|