Trying to redirect Service Portal Header page to external URL.

jasonjones
Giga Contributor

Trying to update our Header Logo to redirect to an outside URL, but can't seem to find the code to do this.

find_real_file.png

find_real_file.png

Basically where the id=lcb_home, I want that to go to an outside link.  I have looked in the CSS, Widgets, and Page area and can't seem to locate where I can make this change.

Thanks.

Jason

1 ACCEPTED SOLUTION

It's there... see the two lines that include:

<a ... href="?id={{portal.homepage_dv}}"

Just change that to:

<a ... href="http://URL.com"

View solution in original post

5 REPLIES 5

nathanfirth
Tera Guru

Jason,

You can update the URL from the Header widget referenced from the Theme. If you have any questions feel free to reach out directly, as we developed the portal for the University of Cincinnati.

Although, I'm curious, why would you want the logo to link out? Could be confusing to an end user who clicks the logo expecting to go to the homepage of the portal.

Thanks,

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

Nathan,

Thanks for the response.  I looked at the UC Header code, but didn't see the reference for it.  I thought it would be in the Body HTML template.

find_real_file.png

 

It's there... see the two lines that include:

<a ... href="?id={{portal.homepage_dv}}"

Just change that to:

<a ... href="http://URL.com"

Nathan,

Instead of hardcoding the url, is there a way which would be more dynamic so it can be used across instances?  For example, I have a custom portal and I want the image link to take users back to the OTTB service portal.  However hardcoding the url would require updating it manually in numerous instances (DEV/UAT/PROD).  Is there a more dynamic way to code it?