Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

How to get return url in asp.net core

$
0
0

I need return url during login and need to redirect to the same path. I am authorizing user using ActionFilterAttribute like below method

 public class AuthorizationAttribute : ActionFilterAttribute
 {
        public override void OnActionExecuting(ActionExecutingContext filterContext)
        {
        }
 }

and need that last url(return url) in class file. If anybody have any idea please share it.

I have got some idea from 

http://stackoverflow.com/questions/38772394/how-can-i-get-url-referrer-in-asp-net-core-mvc

but it's not working in class file.

Thanks


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>