0

I want to redirect the users to the login page when some inter error has occured. Javascript function has got the response as internal error so from this javascript function I want to redirect the user to Liferay login page. what function should I call to achieve this?

Seeker
  • 2,215
  • 5
  • 44
  • 79
  • So if you take all the liferay parts away, your question is basically how to redirect users using javascript. See [this answer](http://stackoverflow.com/questions/503093/how-can-i-make-a-redirect-page-in-jquery-javascript). – Burhan Khalid Mar 10 '13 at 08:14

1 Answers1

0

Change href property of the location object when you need to redirect browser to a new page:

location.href = '/login/page';
dfsq
  • 187,712
  • 24
  • 229
  • 250