Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-cloud-netflix
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-cloud-netflix
Commits
e6c7422c
Commit
e6c7422c
authored
Jan 02, 2015
by
Dave Syer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use <@spring.url/> for all relative paths in FTL
Fixes gh-125
parent
11201762
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
13 deletions
+6
-13
EurekaController.java
...amework/cloud/netflix/eureka/server/EurekaController.java
+2
-11
lastn.ftl
...reka-server/src/main/resources/templates/eureka/lastn.ftl
+2
-1
status.ftl
...eka-server/src/main/resources/templates/eureka/status.ftl
+2
-1
No files found.
spring-cloud-netflix-eureka-server/src/main/java/org/springframework/cloud/netflix/eureka/server/EurekaController.java
View file @
e6c7422c
...
...
@@ -80,18 +80,9 @@ public class EurekaController {
}
protected
void
populateBase
(
HttpServletRequest
request
,
Map
<
String
,
Object
>
model
)
{
String
contextPath
=
serverProperties
.
getContextPath
();
String
path
=
(
contextPath
==
null
)
?
""
:
contextPath
+
serverProperties
.
getServletPath
();
path
=
path
.
replace
(
"//"
,
"/"
);
String
basePath
=
request
.
getScheme
()+
"://"
+
request
.
getServerName
()+
":"
+
request
.
getServerPort
()+
path
;
if
(!
basePath
.
endsWith
(
"/"
))
{
basePath
+=
"/"
;
}
model
.
put
(
"time"
,
new
Date
());
model
.
put
(
"basePath"
,
basePath
);
model
.
put
(
"dashboardPath"
,
dashboardPath
);
model
.
put
(
"basePath"
,
"/"
);
model
.
put
(
"dashboardPath"
,
dashboardPath
.
equals
(
"/"
)
?
""
:
dashboardPath
);
populateHeader
(
model
);
...
...
spring-cloud-netflix-eureka-server/src/main/resources/templates/eureka/lastn.ftl
View file @
e6c7422c
<
#
import
"/
spring
.
ftl
"
as
spring
/>
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html
class=
"no-js"
>
<!--<![endif]-->
<head>
<base
href=
"
${basePath}
"
>
<base
href=
"
<@spring.url basePath/>
"
>
<title>
Eureka - Last N events
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"eureka/css/wro.css"
>
</head>
...
...
spring-cloud-netflix-eureka-server/src/main/resources/templates/eureka/status.ftl
View file @
e6c7422c
<
#
import
"/
spring
.
ftl
"
as
spring
/>
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html
class=
"no-js"
>
<!--<![endif]-->
<head>
<base
href=
"
${basePath}
"
>
<base
href=
"
<@spring.url basePath/>
"
>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<title>
Eureka
</title>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment