cloudscribe / cloudscribe.templates

dotnet new templates for cloudscribe
Apache License 2.0
5 stars 3 forks source link

Order of routing definitions leads to a bug in Forums #68

Closed JimKerslake closed 2 years ago

JimKerslake commented 3 years ago

Inference of routes in a tenant site by helpers like @Url.Action("Index", "Forum") fails to know that 'Index' is the default action and so returns /s2/forum/index which is problematic for various inferred API calls.

Can be resolved by moving routing registration line up: routes.AddForumRoutes(new cloudscribe.Core.Web.Components.SiteFolderRouteConstraint()); to above the block if (useFolders) { but that requires testing for unintended consequences.

https://github.com/exeGesIS-SDM/cloudscribe.TalkAbout/issues/17

JimKerslake commented 2 years ago

This got worked around in the forums code itself - not seeing any residual bugs in forum post creation in tenant site, in solution created from template.