I need to take a particular action if a user logs in from the home page. In my LogOnModel, I have a hidden field:
@Html.Hidden(\"returnUrl\", Request.Url.Absolut
You could use the
Request.Url.AbsoluteUri
Then just check the string for the page name.
Might not be the best way, but its a quick and easy way.
I got that method from this page:
How to get current page URL in MVC 3
There is also another answer there that may be useful for you.