mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
solve issue with backslashes in paths
This commit is contained in:
@@ -80,7 +80,10 @@ const themedTest = (origPath, extension) => {
|
||||
|
||||
const themedUse = (resource, extension) => {
|
||||
const origPath = path.parse(resource);
|
||||
const themedPath = getThemedPath(resource, extension);
|
||||
let themedPath = getThemedPath(resource, extension);
|
||||
|
||||
/* Make sure backslashes are escaped twice, because the replace unescapes those again */
|
||||
themedPath = themedPath.replace(/\\/g, '\\\\');
|
||||
|
||||
return [
|
||||
{
|
||||
|
Reference in New Issue
Block a user