Have upload modal ignore base-path when generating upload path. Resolves #1410.

This commit is contained in:
Bart Kamphorst
2019-09-06 10:10:03 +02:00
parent a04af6c638
commit 2216d67d5a
+1 -1
View File
@@ -18,7 +18,7 @@
var uploadDest = 'uploads';
var perPageUploads = '{{per_page_uploads}}';
if (perPageUploads == 'true') {
uploadDest = uploadDest + window.location.pathname.replace(/.*gollum\/[-\w]+\//, "/").replace(/\.[^/.]+$/, "")
uploadDest = uploadDest + window.location.pathname.replace(/.*gollum\/[-\w]+\//, "/").replace(/\.[^/.]+$/, "").replace(baseUrl, "")
}
{{#page}}
var pageFullPath = '{{escaped_url_path}}';