How to create a tiny URL for service Portal?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-03-2020 08:43 AM
I want to create a short URL for my service portal.
Like: https://myportal
Instead of : https://devXXXXX.service-now.com/sp
so if user enters https://myportal he should get re-directed to portal home page. Is there any way?
- Labels:
-
Service Portal Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-03-2020 08:46 AM
You will have to do this with Processors (System Definition > Processors).
Create a new Processor of type Script, and put the shortened URL in the "Path" field. Then I put the following code in the below SAmple script:
(function process(g_request, g_response, g_processor) {
g_processor.redirect('com.glideapp.servicecatalog_cat_item_view.do?v=1&sysparm_id=d38771f4db10c740a47ffb051d961959&sysparm_link_parent=b00565b8dbdc8740a47ffb051d961977&sysparm_catalog=e0d08b13c3330100c8b837659bba8fb4&sysparm_catalog_view=catalog_default');
})(g_request, g_response, g_processor);
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-03-2020 09:07 AM
I tried this, but does not work. Is there anything else required to be configured?
Path: https://myportal
Script is like:
(function process(g_request, g_response, g_processor) {
g_processor.redirect("devxxxx.service-now.com/sp?sysparm_stack=no");
})(g_request, g_response, g_processor);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-03-2020 08:47 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-03-2020 09:16 AM
You need to do this with either a host file, DNS entry or proxy server.
This may help
https://docs.servicenow.com/bundle/paris-platform-administration/page/integrate/authentication/task/configure-custom-url.html