Skip to content

Commit 4445236

Browse files
author
Sachin Maheshwari
committed
adding sso-login page for Safari browser issue
1 parent f73918d commit 4445236

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<title>Login</title>
5+
<meta charset="utf-8" />
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1" />
8+
<script>
9+
var url = window.location.href;
10+
var result = url.match(/^(.+)(\/(.+)\/)(\/?)(.+)/);
11+
var host = window.location.host;
12+
host = "https://" + host;
13+
var newUrl = host;
14+
if (result) {
15+
try {
16+
newUrl = host + result[5];
17+
console.log("new url: ", newUrl);
18+
} catch (e) {
19+
console.log("Creating new url error: ", e.message);
20+
}
21+
}
22+
window.location.href = newUrl;
23+
</script>
24+
</head>
25+
<body>
26+
</body>
27+
</html>

0 commit comments

Comments
 (0)