fix base_path more thoroughly
This commit is contained in:
parent
d9d94013de
commit
1494d764c1
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue