From 2cab7b72b3b489fdc29c7c1d95a157335d16c4dc Mon Sep 17 00:00:00 2001 From: Amos Haviv Date: Sun, 29 Sep 2013 14:46:10 +0300 Subject: [PATCH] Fixed relative paths for html5mode --- app/views/includes/foot.jade | 34 +++++++++++++++++----------------- app/views/includes/head.jade | 8 ++++---- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/app/views/includes/foot.jade b/app/views/includes/foot.jade index c65e13c610..fc890c4c1b 100755 --- a/app/views/includes/foot.jade +++ b/app/views/includes/foot.jade @@ -1,32 +1,32 @@ -script(type='text/javascript', src='lib/jquery/jquery.js') +script(type='text/javascript', src='/lib/jquery/jquery.js') //Bootstrap -script(type='text/javascript', src='lib/bootstrap/js/bootstrap.js') +script(type='text/javascript', src='/lib/bootstrap/js/bootstrap.js') //AngularJS -script(type='text/javascript', src='lib/angular/angular.js') -script(type='text/javascript', src='lib/angular-cookies/angular-cookies.js') -script(type='text/javascript', src='lib/angular-resource/angular-resource.js') +script(type='text/javascript', src='/lib/angular/angular.js') +script(type='text/javascript', src='/lib/angular-cookies/angular-cookies.js') +script(type='text/javascript', src='/lib/angular-resource/angular-resource.js') //Angular UI -script(type='text/javascript', src='lib/angular-bootstrap/ui-bootstrap-tpls.js') -script(type='text/javascript', src='lib/angular-ui-utils/modules/route.js') +script(type='text/javascript', src='/lib/angular-bootstrap/ui-bootstrap-tpls.js') +script(type='text/javascript', src='/lib/angular-ui-utils/modules/route.js') //Application Init -script(type='text/javascript', src='js/app.js') -script(type='text/javascript', src='js/config.js') -script(type='text/javascript', src='js/directives.js') -script(type='text/javascript', src='js/filters.js') +script(type='text/javascript', src='/js/app.js') +script(type='text/javascript', src='/js/config.js') +script(type='text/javascript', src='/js/directives.js') +script(type='text/javascript', src='/js/filters.js') //Application Services -script(type='text/javascript', src='js/services/global.js') -script(type='text/javascript', src='js/services/articles.js') +script(type='text/javascript', src='/js/services/global.js') +script(type='text/javascript', src='/js/services/articles.js') //Application Controllers -script(type='text/javascript', src='js/controllers/articles.js') -script(type='text/javascript', src='js/controllers/index.js') -script(type='text/javascript', src='js/controllers/header.js') -script(type='text/javascript', src='js/init.js') +script(type='text/javascript', src='/js/controllers/articles.js') +script(type='text/javascript', src='/js/controllers/index.js') +script(type='text/javascript', src='/js/controllers/header.js') +script(type='text/javascript', src='/js/init.js') //Livereload script rendered script(type='text/javascript', src='http://localhost:35729/livereload.js') diff --git a/app/views/includes/head.jade b/app/views/includes/head.jade index 4141d03d8c..8bd0f416ac 100755 --- a/app/views/includes/head.jade +++ b/app/views/includes/head.jade @@ -19,11 +19,11 @@ head meta(property='og:site_name', content='MEAN - A Modern Stack') meta(property='fb:admins', content='APP_ADMIN') - link(rel='stylesheet', href='lib/bootstrap/css/bootstrap.css') - link(rel='stylesheet', href='lib/bootstrap/css/bootstrap-responsive.css') - link(rel='stylesheet', href='css/common.css') + link(rel='stylesheet', href='/lib/bootstrap/css/bootstrap.css') + link(rel='stylesheet', href='/lib/bootstrap/css/bootstrap-responsive.css') + link(rel='stylesheet', href='/css/common.css') - link(rel='stylesheet', href='css/views/articles.css') + link(rel='stylesheet', href='/css/views/articles.css') //if lt IE 9 script(src='http://html5shim.googlecode.com/svn/trunk/html5.js')