We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f29024a + d828cae commit 96edea2Copy full SHA for 96edea2
custom-web/static/js/main.js
@@ -1,5 +1,6 @@
1
const hostname = window.location.hostname;
2
const protocol = window.location.protocol;
3
+const port = window.location.port;
4
5
// login();
6
var dex = new Vue({
@@ -34,7 +35,12 @@ var dex = new Vue({
34
35
if (roleBinding) {
36
const role = roleBinding.map((item) => item.role);
37
store.set("role", role);
- window.location.href = `${protocol}//${hostname}/v1/projects`;
38
+ if(port){
39
+ window.location.href = `${protocol}//${hostname}:${port}/v1/projects`;
40
+ }
41
+ else{
42
+ window.location.href = `${protocol}//${hostname}/v1/projects`;
43
44
}
45
46
0 commit comments