Service Portal : Create url aliases

Patrick Boutet
Mega Expert

Hi, 

We are migrating our old CMS portal to ServicePortal.
We would like to keep the same url and allow re-use of links.
We allowed content_page on old CMS for example to display directly some catalog item form (ex xxx.service-now.com/portal/test)

With ServicePortal url are build differently (ex : xxx.service-now.com/sp?id=sc_cat_item&sys_id=7e18f31e0f0086006c18929792050ee7)

Is it possible to define url aliases ? in order to redirect  xxx.service-now.com/portal/test to xxx.service-now.com/sp?id=sc_cat_item&sys_id=xxxxx)

Thanks

1 ACCEPTED SOLUTION

Barrilito van D
Kilo Guru

Hi Patrick,

This is an interesting question.

In this thread you read some stuff around customizing urls, etc:

https://community.servicenow.com/community?id=community_question&sys_id=672803addb1cdbc01dcaf3231f96191f

However, it will not give you an answer to what you are looking for.

Next to the discussion in the thread above, there is something in the service portal called "route maps" where you can define urls to route to other url's, but unfortunately ServiceNow did not make it dynamic so that it can forward dynamic parameters as well (such as the sys_id in your example). So that is also something that touches the solution but does not do the job as well I guess? Or do you need to route plain static urls to static other urls? Then this should be the way to go.

In general I would not advice to work like this. Perhaps as a temp solution. But practice shows that you will forget about redirects and old urls keep on being used. If you do this workaround you should have a plan to change this in time. Apart from that you have double page hits etc, and you can not be sure how google will see your urls as they will redirect.

Anyway, I hope it will bring you one step further. Good luck!

 


 

If you think my answer put you in the right direction or you appreciated my effort, please mark the response as Helpful (👍). That way other people in the community will probably be triggered to read the responses too. If my answer solved your issue, please mark my response as Correct (). In the list of question people like me that want to help out will know your question was already answered and others that are curious to the answer know a good answer is given in the thread.
Thanks in advance! Good luck!

View solution in original post

3 REPLIES 3

Barrilito van D
Kilo Guru

Hi Patrick,

This is an interesting question.

In this thread you read some stuff around customizing urls, etc:

https://community.servicenow.com/community?id=community_question&sys_id=672803addb1cdbc01dcaf3231f96191f

However, it will not give you an answer to what you are looking for.

Next to the discussion in the thread above, there is something in the service portal called "route maps" where you can define urls to route to other url's, but unfortunately ServiceNow did not make it dynamic so that it can forward dynamic parameters as well (such as the sys_id in your example). So that is also something that touches the solution but does not do the job as well I guess? Or do you need to route plain static urls to static other urls? Then this should be the way to go.

In general I would not advice to work like this. Perhaps as a temp solution. But practice shows that you will forget about redirects and old urls keep on being used. If you do this workaround you should have a plan to change this in time. Apart from that you have double page hits etc, and you can not be sure how google will see your urls as they will redirect.

Anyway, I hope it will bring you one step further. Good luck!

 


 

If you think my answer put you in the right direction or you appreciated my effort, please mark the response as Helpful (👍). That way other people in the community will probably be triggered to read the responses too. If my answer solved your issue, please mark my response as Correct (). In the list of question people like me that want to help out will know your question was already answered and others that are curious to the answer know a good answer is given in the thread.
Thanks in advance! Good luck!

Thanks for for answer

I think that route map will do the job.

JC S_
Mega Guru

We opened an idea here on the ServiceNow Idea Portal to make this functionality available out of the box, feel free to vote for it so we can have ServiceNow to consider it. Thanks!