fix base_path more thoroughly

This commit is contained in:
AJ ONeal 2015-01-23 04:11:11 -07:00
parent d9d94013de
commit 1494d764c1
1 changed files with 3 additions and 3 deletions

View File

@ -50,9 +50,9 @@
, posts: { collated: view.desi.collated }
, urls: {
base_url: view.env.base_url
// /something -> good (leading slash)
// / -> bad (trailing slash)
, base_path: view.env.base_path.replace(/^\/$/, '')
// /something/ -> good (leading and trailing slash)
// / -> bad good (leading and trailing slash)
, base_path: (view.env.base_path + '/').replace('//', '/')
}
, data: {
author: {