85 views

Description

After a user created a guided tour on a Service Portal page, when he/she clicks on "Edit with Designer", the guided tour designer loads for a moment, then redirects the user back to Service Portal. Thus user was unable to edit the created "Service Portal" guided tour record in the designer.

Release or Environment

Newyork, Orlando and latest releases.

Cause

  • The Guided tour designer was redirecting the user to the portal due to the following custom widget on "index" page.
  • The customer Framebuster widget had below code,
<style> html{display:none;} </style>
<script>
if(self == top || top.location.href.indexOf('sp_config') > -1) {
document.documentElement.style.display = 'block';
} else {
top.location = self.location;
}
</script>

 

  • This script checks the url of the user to see whether the url contains "sp_config", and then decides whether to redirect to the portal page

 

Resolution

 

To allow the guided tour to work with custom Framebuster widget, please update the widget code as below, so that when the page is loaded on guided tour system doesn't redirect to portal instead stay on tour designer view,

 

<style> html{display:none;} </style>
<script>
if(self == top || top.location.href.indexOf('sp_config') > -1 || top.location.href.indexOf('gtb') > -1) {
document.documentElement.style.display = 'block';
} else {
top.location = self.location;
}
</script>



Article Information

Last Updated:2020-03-31 08:00:27
Published:2020-03-31