Remove link to homepage on service portal logo.

miriamberge
Tera Guru

I do not want users to be able to click on the "ServiceNow" logo to take them back to the homepage.  I saw where someone else posted about this and they copied the Header Menu widget and then modified it by removing the href, however, when I look at the Header Menu widget, I don't see that same code.

Does anyone know what I would need to configure / change so that clicking on the logo doesn't take the user anywhere? 

Unfortunately from our main portal, we have to link to two other portals.  When the users are in these other portals, it looks like they are still in the main portal (which is what we want) and so I either want to disable the link or else have it link back to the main portal.  Disabling seems like the easiest option, but open to suggestions.

Thanks!

find_real_file.png

 

 

 

1 ACCEPTED SOLUTION

nathanfirth
Tera Guru

You need to make the change inside the header widget referenced from your theme, most likely "Stock Header". The "Header Menu" widget is what renders the actual menu inside the header, but not the header itself.

Rather than removing the hyperlink, why not just do a quick GlideRecord to fetch the "default" portal, and then link to that? Or even hard code the URL?

It's pretty standard today to click on the logo to go to the homepage, so I would advise against removing the link.

Hope that helps,

-----------------
Nathan Firth
Founder and ServiceNow Architect
NewRocket, Inc.
nathan.firth@newrocket.com
http://serviceportal.io
http://newrocket.com

View solution in original post

4 REPLIES 4

nathanfirth
Tera Guru

You need to make the change inside the header widget referenced from your theme, most likely "Stock Header". The "Header Menu" widget is what renders the actual menu inside the header, but not the header itself.

Rather than removing the hyperlink, why not just do a quick GlideRecord to fetch the "default" portal, and then link to that? Or even hard code the URL?

It's pretty standard today to click on the logo to go to the homepage, so I would advise against removing the link.

Hope that helps,

-----------------
Nathan Firth
Founder and ServiceNow Architect
NewRocket, Inc.
nathan.firth@newrocket.com
http://serviceportal.io
http://newrocket.com

Ahh, I was looking in the wrong spot... thank you for the detail... much appreciated!  I'll try the GlideRecord approach!

Can you further elaborate this?

SNowHow
Kilo Contributor

Here is a step-by-step video to walk you through the process of updating the service portal logo URL:

https://snowhow.ca/2021/04/int-series-portal-logo-url-redirect/

Hope this helps!

------------

The SNowBros

https://snowhow.ca

YouTube