Self Service Portal : Custom font file download upon login
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-10-2017 07:09 AM
Hi All,
We have implemented a requirement to reflect custom fonts in Self Service Portal using the attachment option. The custom fonts are reflecting appropriately throughout the Portal.
But we have come across an issue for some users, wherein if they try to login to the Self Service Portal, the custom font file gets downloaded for them. After clicking on the Login button it takes them to Native ServiceNow UI with Self Service Portal landing page embedded in it.
While some users are able to login perfectly fine, they do not get any font file downloaded when they try to login and they are directed to the Self Service Portal landing page.
Please can you help if you have come across such an issue. We are on Helsinki version.
Regards,
Amit
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2017 12:45 PM
Hi Amit,
Please follow below steps.
- 1. Some users not getting the custom fonts.
Solution : make a read ACL on attachments table where condtion is table = sp_theme.
- 2. Attachment file getting downloaded and portal coming in embedded frame.
Solution: In you theme record of service portal add below line in server script part.
gs.setRedirect('/nav_to.do?uri=home.do');
(please mark helpful/like/correct if it helps)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2017 08:18 AM
Hi Rushit,
Could you please clarify the solution you have proposed for the second point. I am having the same issue. However, I don't understand where exact the line of code "gs.setRedirect('/nav_to.do?uri=home.do');" need to go. I could not find any server script attribute for my theme record of service portal. Please clarify where exactly I need to put that line of code so it fixes the issue where font file is getting downloaded.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-06-2018 11:07 PM
hi Amit,
you gt solution for ur issue ??
i am also facing same issue

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2018 01:44 AM
Hello!
I was facing the same issue and found a solution in the following article by Nathan Firth: https://serviceportal.io/using-custom-fonts-service-portal/
I used option 2 as according to the article option 3 is not the way to go.
Please mark this as the Accepted Solution / Helpful in case it solved your issue.