Issue
Explore options to automatically redirect users from a content management site (CMS) page to Service Portal. This ensures that users of a legacy CMS are redirected to and continue using the Service Portal.
Process
Use any of these three options to implement the automatic redirect to Service Portal:
Option #1
Modify the layout (which is just a UI macro) of the CMS page to contain the following code:
To do this:
- Go to the CMS home page.
- In the default layout, under the Layout field, find CMS 1 Column.
- Select the i icon to go to that UI macro.
- At the bottom of the XML script, but before the </j:jelly> part, insert the following code"
<script>
window.location.replace("/the_sp_suffix")
</script>
Option #2
Create a custom global UI script that redirects when it detects a URL containing /your_cms_suffic.
For detailed steps, refer to this community post.
Option #3
Modify the CMS pages to have a container by adding a content block that displays a redirect message. The link should contain the link to the Service Portal page (that is, /sp).
Release
Applicable to all versions that use CMS and Service Portal