# How to open current page in perspective using own login when click on button

**URL:** <https://forum.inductiveautomation.com/t/how-to-open-current-page-in-perspective-using-own-login-when-click-on-button/78057>\
**Category:** Ignition\
**Tags:** ignition81, perspective, scripting\
**Created:** [August 18, 2023, 6:43am UTC](https://forum.inductiveautomation.com/t/how-to-open-current-page-in-perspective-using-own-login-when-click-on-button/78057 "2023-08-18T06:43:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Priyanka.Khandge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/priyanka.khandge/32/35989_2.png) [@Priyanka.Khandge](https://forum.inductiveautomation.com/u/Priyanka.Khandge)\
**Post date:** [August 18, 2023, 6:43am UTC](https://forum.inductiveautomation.com/t/how-to-open-current-page-in-perspective-using-own-login-when-click-on-button/78057/1 "2023-08-18T06:43:39Z")

</div>

Hi guys,

I'm trying to open the current page when I login button is clicked using the below script and idea what is wrong from my end.

Using the below script login successfully but open the home page.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/a/3aff616cecceb1aaa13898b7d03fecc1db0e105d.png)

Thanks,  
Priyanka
