Hi,
I’m trying to redirect the browser to the login page using AngularJS from an app page but I can’t do it. I’m using this code from a custom widget:
$window.location.href = $scope.properties.URL; //URL is the login page
$window.location.reload();
That code loads the login page but in the custom page frame, not the window, then I got the login page embedded on my app page. ( Click here for viewing an example )
How can I redirect all the window?
Thanks in advance.
What I really think you want is:
window.location=“yoururl.com”
reload does exactly that reloads the window, you want to send it a new window completely.
regards
Hi,
I’ve solved it and I share a simple custom widget that allows you to redirect the browser (I use it on a custom logout page).
There is: https://drive.google.com/open?id=0B1NEDag8U9w_SHlXWkEzZDlfbVk
Thank you.
Hi Sean,
Thanks for your answer.
Well I tried it but it did not work, I’m having the same problem, the login page loads on the custom page frame and this happens when I log in.