Developer forum

Forum » Development » After login; Return to current page

After login; Return to current page


Reply
Hi

 

I’m looking for a tag/function that directs me to the current site I was on before login. Is there a tag for that?

 

Or a function that finds out where on the site a person just logged in from and directs to that spot.

 

Do you know what I mean? :)


 

- Rasmus

Replies

 
Nicolai Høeg Pedersen
Reply
rs@condurra.dk wrote:


Hi



 



I’m looking for a tag/function that directs me to the current site I was on before login. Is there a tag for that?



 



Or a function that finds out where on the site a person just logged in from and directs to that spot.



 



Do you know what I mean? :)






 



- Rasmus

The extranet form can be submitted to whatever page you want to display - so if you want to show Default.aspx?ID=123&ecom=whatever&someOther=thethird, set it as action on the login form - thats it.
 
Reply
NP wrote:

rs@condurra.dk wrote:





Hi







 







I’m looking for a tag/function that directs me to the current site I was on before login. Is there a tag for that?







 







Or a function that finds out where on the site a person just logged in from and directs to that spot.







 







Do you know what I mean? :)














 







- Rasmus



The extranet form can be submitted to whatever page you want to display - so if you want to show Default.aspx?ID=123&ecom=whatever&someOther=thethird, set it as action on the login form - thats it.



I don’t want to use a default direction or a set pageId. I want a tags that knows where it had just come from “what pageId” and redirect it back to where the user were before the login.

 

Am I missing something?  
 
Reply

This is excactly what extranet login does, unless you have a redirect url set for the user or group. If you look at the source code of an Extranet protected page, you'll see that the action og the login form is the same as the page you're currenty displaying. All Dynamicweb needs to log you in is Username and Password parameters in your request.

 
Henrik Sørensen
Reply

For the sake of potential future readers:

What Rasmus wanted was this:

<form action="<!--@Global:Pageview.Url-->">

 

You must be logged in to post in the forum