Add current URL to ViewBag on each request and use it in layout (Asp.net core razor pages)

后端 未结 0 1613
小鲜肉
小鲜肉 2021-01-26 20:33

How can I add the current request URL to the ViewBag on each new request and use it in the layout?

Basically, I want to add the property CanonicalUrl (which is the curren

相关标签:
回答
  • 消灭零回复
提交回复
热议问题