Closed justdmitry closed 8 years ago
@justdmitry I will take a look. Providing area route value like in the original helpers methods should workaround this:
@Url.Action
I believe the magic string overloads will generate the same link - @Url.Action("Logout", "Account") will add the area.
@justdmitry Package with a fix is now uploaded to NuGet.
Controller
AccountController
is located in default (root, non-area specific) part of my site, it hasLogout
action.I have area
Admin
with controllers labeled with[Area("admin")]
attribute.My
Startup
class contains following code:Everything looks correct according to asp.net core docs
Inside view in my Areas/Admin/Views/... I write:
@Url.Action<MyNamespace.Controllers.AccountController>(c => c.Logout()) })
And generated value is
/admin/account/logout
, which is incorrect. Must be/account/logout
, becauseAccountController
does not haveArea
attribute.