How to hide Left navigation bar on user redirect

savitha5
Tera Contributor

Hi,

I have a UI page redirecting user to a particular form in the instance. When user clicks on the URL from email notification he will have to be redirected to the form and left navigation bar should be hidden. Can anybody suggest me a solution for this.

The URL used in UI Page to redirect user is : com.glideapp.servicecatalog_cat_item_view.do?v=1&sysparm_id=9aa0cd8b4f653200b55db4a18110c718

But when an end user clicks on the link the URL is shown as : /nav_to.do?uri=/com.glideapp.servicecatalog_cat_item_view.do%3Fv%3D1%26sysparm_id%3D9aa0cd8b4f653200b55db4a18110c718

Please find the screenshot of the form below. User clicks on the URL from an email and he will be asked to login, and once logged in only the form should be shown. I want to remove the navigation bars.

Thrid party view.PNG

Is there anybody who can help me out of this ?

Regards,

Savitha

7 REPLIES 7

kristenankeny
Tera Guru

You could try updating navigator.collapsed for the logged in user (found in User Preferences table).


Kristen,



I tried navigator.collapsed but it only collapse the navigation part and user still has an option to expand it.



But got to know about it Thank you!


One other thing to try is updating the link you're directing them to. I've noticed that the url changes based on whether I open a record/list in my main screen or if I open it in a new tab:



In the frame:


https://yourInstance.service-now.com/nav_to.do?uri=/pc_hardware_cat_item.do%3Fsys_id%3Dda30efca3758d......



In a new tab:


https://yourInstance.service-now.com/pc_hardware_cat_item.do?sys_id=da30efca3758de00b69a2863b3990e8f...