From ccbc606dadcc7359da7cdb1d362cf813def22b09 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Mon, 24 Nov 2014 10:55:37 +0000 Subject: [PATCH] Use relative paths so index is unaffected by its context path Previously, index.html used absolute paths to load its CSS and JavaScript. This meant that it had to be deployed to /. This commit updates the HTML to use relative paths for its CSS and JavaScript, thereby ensuring that they can be loaded irrespective of the context path to which the application is deployed. Closes gh-1988 --- .../src/main/webapp/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spring-boot-samples/spring-boot-sample-web-static/src/main/webapp/index.html b/spring-boot-samples/spring-boot-sample-web-static/src/main/webapp/index.html index 7251f6ff04..03a317ed60 100644 --- a/spring-boot-samples/spring-boot-sample-web-static/src/main/webapp/index.html +++ b/spring-boot-samples/spring-boot-sample-web-static/src/main/webapp/index.html @@ -4,11 +4,11 @@ Static + href="webjars/bootstrap/3.0.3/css/bootstrap.min.css" /> + src="webjars/jquery/2.0.3/jquery.min.js"> + src="webjars/bootstrap/3.0.3/js/bootstrap.min.js">