A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Gtetting page data from Login link in header

Vote:
 

Hi,

I have a login link on header of a page. When user clicks on the link, he redirects to LoginPageController with current page type as login page. I want page data of a page from where user clicked on login page. For example, if user is on contact us page and clicks on Login link, I want to get contact us page data.

Login page Index code:

public async Task Index(LoginPage currentPage)
{

.....

}

Thanks & Regards,

Sanket Mahimkar

#183068
Oct 04, 2017 11:29
Vote:
 

Can you pass the Page id as a query string? That would be simplest approach.

#183087
Oct 04, 2017 18:27
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.