Commit 8dfb8d2d authored by Piotr Gawron's avatar Piotr Gawron
Browse files

when logo is provided as full url the image is not broken on the login page

parent 57d429dd
......@@ -492,6 +492,10 @@ function createFooter() {
return ServerConnector.getConfigurationParam(ConfigurationType.LOGO_IMG);
}).then(function (result) {
logoImg = result;
if (!/^(f|ht)tps?:\/\//i.test(logoImg)) {
logoImg = GuiConnector.getImgPrefix() + logoImg;
}
return ServerConnector.getConfiguration();
}).then(function (configuration) {
return functions.createElement({
......@@ -500,7 +504,7 @@ function createFooter() {
content: '<table width="100%" border="0" cellspacing="0" cellpadding="0">' +
'<tr>' +
'<td align="left"><a href="' + logoLink + '" title="' + logoText + '" target="_blank">' +
'<img src="' + GuiConnector.getImgPrefix() + logoImg + '" width="80" height="80" border="0" alt="' + logoText + '"/>' +
'<img src="' + logoImg + '" width="80" height="80" border="0" alt="' + logoText + '"/>' +
'</a></td>' +
'<td align="center" class="minerva-footer-text">MiNERVA version ' + configuration.getVersion() + ';<br/>' +
'build ' + configuration.getBuildDate() + ';<br/>' +
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment