November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
Is the instance of your content type TestPage also called TestPage? Try renaming it to something else then give it another go.
Your TestPage is the name of your content type. But it looks as if TestPage is also the name of the instance of your page.
The reason why could be getting PageLink = null is because you've routed via an MVC route and not an Episerver route..i,e, one with your page context.
Just a theory, try renaming the instance of your page and see if it routes.
I think is due to the fact that I have routed via MVC and not via EpiServer route.
Ajax methods doesn't contains an extension method that takes URL as paramter. I don't know if there is another way to solve it except that I have to create my own extension method ?
I found out that this routing is not working due to CMS NuGet package upgrade. I have now downgraded packages to ->
<PackageReference Include="EPiServer.CMS" Version="12.18.0" />
<PackageReference Include="EPiServer.CMS.AspNetCore.HtmlHelpers" Version="12.12.1" />
and now AjaxBeginForm() works as expected.
I think I would keep CMS at 12.18.x ver. for now,
HI,
I have just upgraded CMS ver. to 12.20.0 and now I am having this issue that IPageRouteHelper.PageLink is null when posting form via AjaxBeginForm().
This is the Ajax form and it posts to a POST method in TestPage name "LoginTest"
TestPage controller have this XXRedirection attribute
Here PageLink is null.
Any input would be appreciated