So i was looking a lot on several topics here and learningrazorpages. but i cannot figure something out.
so on my setup i have area
Identity
/pages
/account
/login
services
.AddMvc(cfg =>
{
cfg.UseCentralRoutePrefix(new RouteAttribute(path));
})
on my controllers this works like a charm. But it looks like on my razor pages this is not honored.
so now i have to write this in my *.cshtml.
@page "~/PREFIX/identity/account/login2"
but i dont want to write this on all my pages. can i do this easy with razor conventions on an area?
.AddRazorPagesOptions(options => {...}); ???