I am working on a SharePoint Server 2013 and I have 4 site collections.
I want to always redirect users to the root site collection if they click on the sites logo from the 4 site collections, so I wrote the following script and added it inside the 4 site collections' master pages:
$(document).ready(function () {
$("#DeltaSiteLogo a.ms-siteicon-a").prop("href", "/");
$("DeltaSiteLogo a.ms-siteicon-a").prop("onclick", "");
});
The above workes well in IE (I am using IE11) but in Firefox and Chrome the site logos' url will not reference the root site collection, and will keep referencing each site collection root site.
Can anyone advice on this please?