Service Portal history.replaceState method fails after Utah upgradeIssue In the Utah release, the standard web API **history.replaceState** method does not work as expected in Service Portal. In releases prior to Utah, such as Tokyo, it worked as expected. This is expected behavior resulting from a deliberate change introduced in Utah. Release<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } Beginning with Utah release Cause Until the Tokyo release, the Service Portal page HTML did not contain the `<base>` tag. With the Utah release, to improve SEO and follow industry standards, Service Portal uses `<base>` tags to make URLs more human readable. The `<base>` tag uses the portal suffix in the href value. For example: ```<base href="/<portal-suffix>" >``` Example of prior URL: ```<instance-name>/sp?id=kb_article_view&sys_id=471ee81eff6002009b20ffffffffff34``` New URL: ```<instance-name>/sp/en/getting-around-in-windows?id=kb_article_view&sys_id=471ee81eff6002009b20ffffffffff34``` Resolution To use the **history.replaceState** API, include only the URL portion that appears after the `<base>` tag. For example: ```history.replaceState( {} , '', '?id=sc_category#tab=t1' );``` [SME: verify whether a specific role or permission is required to edit Service Portal scripts where this API call is used, and add the navigation path to where the change is applied] **Important:** The `<base>` tag is an industry standard. There is no default functionality to turn off the tag and it must not be removed. Removing it impacts navigation for portal pages with human-readable URLs configured and URLs with language path parameters, such as /sp/en. Related Links - [Enable human-readable URLs for the Knowledge Article View page](https://docs.servicenow.com/bundle/utah-servicenow-platform/page/product/knowledge-management/task/add-human-readable-keywords-knowledge-pages.html)- [base: The Document Base URL element on MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base)