Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat #1839]: Support setting server.servlet.context-path #1851

Merged
merged 2 commits into from
Nov 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ angular
return response;
},
'request' : function(config) {
// Resolved resource loading failure after configuring ContextPath
var baseUrl = $window.document.getElementsByTagName('base')[0].href;
config.url = baseUrl + config.url;
return config;
},
'requestError' : function(config){
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="container">
<div class="row" style="margin: 200px auto 15px auto; text-align: center;">
<img src="../../assets/img/sentinel-logo.png" alt="Sentinel Logo"
<img src="./assets/img/sentinel-logo.png" alt="Sentinel Logo"
style="max-height: 25%; max-width: 25%;">
<!-- <h1 id='login_title'>Sentinel 控制台</h1> -->
</div>
Expand Down

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions sentinel-dashboard/src/main/webapp/resources/index.htm
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<link rel="stylesheet" href="./lib/css/bootstrap.min.css" />
<link rel="stylesheet" href="./lib/css/font-awesome.min.css">
<link rel="stylesheet" href="./dist/css/app.css">
<base href="./">
</head>

<body>
Expand Down
1 change: 1 addition & 0 deletions sentinel-dashboard/src/main/webapp/resources/index_dev.htm
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.0.3/css/bootstrap.min.css" />
<link rel="stylesheet" href="//cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="http://localhost:1234/css/app.css">
<base href="./">
</head>

<body>
Expand Down