diff --git a/apps/common/main/lib/view/Header.js b/apps/common/main/lib/view/Header.js
index 4ef297cb7..d43bd5099 100644
--- a/apps/common/main/lib/view/Header.js
+++ b/apps/common/main/lib/view/Header.js
@@ -204,11 +204,12 @@ define([
if ( me.logo )
me.logo.children(0).on('click', function (e) {
- var _url = !!me.branding && !!me.branding.logo && !!me.branding.logo.url ?
- me.branding.logo.url : 'http://www.onlyoffice.com';
-
- var newDocumentPage = window.open(_url);
- newDocumentPage && newDocumentPage.focus();
+ var _url = !!me.branding && !!me.branding.logo && (me.branding.logo.url!==undefined) ?
+ me.branding.logo.url : 'https://www.onlyoffice.com';
+ if (_url) {
+ var newDocumentPage = window.open(_url);
+ newDocumentPage && newDocumentPage.focus();
+ }
});
onResetUsers(storeUsers);
@@ -412,6 +413,7 @@ define([
if (this.branding && this.branding.logo && this.branding.logo.image && this.logo) {
this.logo.html('');
this.logo.css({'background-image': 'none', width: 'auto'});
+ (this.branding.logo.url || this.branding.logo.url===undefined) && this.logo.addClass('link');
}
return $html;
@@ -522,6 +524,7 @@ define([
if (element) {
element.html('');
element.css({'background-image': 'none', width: 'auto'});
+ (value.logo.url || value.logo.url===undefined) && element.addClass('link');
}
}
}
diff --git a/apps/common/main/resources/less/header.less b/apps/common/main/resources/less/header.less
index 0c5e69d4f..d30ba6bc9 100644
--- a/apps/common/main/resources/less/header.less
+++ b/apps/common/main/resources/less/header.less
@@ -144,7 +144,7 @@
.background-ximage('@{common-image-path}/header/header-logo.png', '@{common-image-path}/header/header-logo@2x.png', 86px);
}
- img {
+ &.link img {
cursor: pointer;
}
}