Redirect to Service Operations Workspace while opening the Agent workspace

Mahesh Pydisett
Tera Contributor

Hi Everyone,

 

Can anyone please help me on how to achieve this i.e., while opening the agent workspace url(/now/workspace/agent/home) the landing page need to redirect to another url(/now/sow/home). 

 

Thanks,

Mahesh

7 REPLIES 7

Yes @Sarat_Mongam 

We can achieve this by writing the UI Script, PFA

Create a UI script for that
1. Go to UI scripts
2. Click on new
3. On the script use:

(function() {
  if(top.window.location.href.indexOf("workspace/agent/home") > -1) {
    top.window.location = '/now/sow/home';
  }
})();

4. Save
5. Now, if the user goes to agent workspace that will be directing to SOW.

 

Thanks,

Mahesh

 

 

Hi Mahesh,

 

Thanks for the response. The UI script works but if you restrict access using ACL and still have the UI script you suggested, it takes access users to 403 page and the re-direction wont work. Did you face this scenario. If yes, is there a best way of re-directing the users

Doesn't works for me, as UI script didn't fired from the workspace, works fine within other forms. If you select the UI Type as All Global will be unchecked. Works only on UI Type as "Desktop" and UI scripts will not work on workspaces for UI type as Desktop.