Skip to content
Snippets Groups Projects
Commit ce03319b authored by Benedikt Heinrichs's avatar Benedikt Heinrichs
Browse files

Fix: Correct the image path (coscine/issues#292)

parent f72a3f35
No related branches found
No related tags found
1 merge request!7Fix: Correct the image path (coscine/issues#292)
......@@ -127,6 +127,7 @@ if (document.currentScript !== undefined) {
imageEnabled = true;
}
const scriptUrl = (scriptPath === '') ? '/' : scriptPath.substring(0, scriptPath.indexOf('app.js'));
const rootUrl = (scriptPath.indexOf('/js') !== -1) ? scriptUrl.replace('/js', '') : scriptUrl;
function getReturnUrl() {
const hookupElement = document.getElementById('loginpage');
......@@ -155,17 +156,17 @@ export default Vue.extend({
computed: {
cssProps() {
return {
'--linkWhite': 'url(' + scriptUrl + linkWhitePath + ') 1px 9px no-repeat',
'--mailGrey': 'url(' + scriptUrl + mailGreyPath + ') 0px 6px no-repeat',
'--phoneGrey': 'url(' + scriptUrl + phoneGreyPath + ') 0px 6px no-repeat',
'--faxGrey': 'url(' + scriptUrl + faxGreyPath + ') 0px 6px no-repeat',
'--linkWhite': 'url(' + rootUrl + linkWhitePath + ') 1px 9px no-repeat',
'--mailGrey': 'url(' + rootUrl + mailGreyPath + ') 0px 6px no-repeat',
'--phoneGrey': 'url(' + rootUrl + phoneGreyPath + ') 0px 6px no-repeat',
'--faxGrey': 'url(' + rootUrl + faxGreyPath + ') 0px 6px no-repeat',
};
},
},
data() {
return {
coscineImage: scriptUrl + coscineImagePath,
rwthImage: scriptUrl + rwthImagePath,
coscineImage: rootUrl + coscineImagePath,
rwthImage: rootUrl + rwthImagePath,
imageEnabled,
returnUrl: getReturnUrl(),
orcidUrl: getORCiDUrl(),
......
......@@ -14,6 +14,6 @@ module.exports = {
config.optimization.delete('splitChunks')
},
css: {
extract: false,
},
extract: false,
},
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment