Pass original URL through after login redirect

Hi,

I am trying to access a specific task page using the task id in the URL (i.e /task/123456). It redirects to login page but after successful authentication it doesn’t go to the original URL but rather to the redirectURL property in the properties file. Is there a way to redirect it to the original url after successful authentication?

Thanks in advance!