this might be a simple fix, but it certainly doesn't seem to be.

I have built a EE-based web application, and as is part and parcel with web applications, users are required to log into the system. 

With our application, users are often sent links like profile links, sort of like a social network works. However, at the moment, when users click on the links, they are required to login, and then they are brought to a generic template after logging in. I've tried using this <http://devot-ee.com/add-ons/preevious> but the value is coming up as blank regardless of how many times I try to use it.

Any ideas? Realistically, this is a massive deterrent for our users. If they are sent a link to a page, they need to log into the system, and then go back and click on the link in an email or via whatever other medium they were sent the link.

Any help or input would be massively appreciated. By the way, we are using standard access restrictions on this web app, which are set in the Template Manager. So if I try to go to domain.com/contacts, it will redirect me to domain.com/login and then once I login it will bring me to domain.com/home because that is our index page.

Cheers in advance, 
Conor