Have upload modal ignore base-path when generating upload path. Resolves #1410.
This commit is contained in:
@@ -18,7 +18,7 @@
|
|||||||
var uploadDest = 'uploads';
|
var uploadDest = 'uploads';
|
||||||
var perPageUploads = '{{per_page_uploads}}';
|
var perPageUploads = '{{per_page_uploads}}';
|
||||||
if (perPageUploads == 'true') {
|
if (perPageUploads == 'true') {
|
||||||
uploadDest = uploadDest + window.location.pathname.replace(/.*gollum\/[-\w]+\//, "/").replace(/\.[^/.]+$/, "")
|
uploadDest = uploadDest + window.location.pathname.replace(/.*gollum\/[-\w]+\//, "/").replace(/\.[^/.]+$/, "").replace(baseUrl, "")
|
||||||
}
|
}
|
||||||
{{#page}}
|
{{#page}}
|
||||||
var pageFullPath = '{{escaped_url_path}}';
|
var pageFullPath = '{{escaped_url_path}}';
|
||||||
|
|||||||
Reference in New Issue
Block a user