blogifierdotnet / Blogifier

Blogifier is an open-source publishing platform Written in ASP.NET and Blazor WebAssembly. With Blogifier make a personal blog or a website.
https://blogifier.net
MIT License
1.28k stars 518 forks source link

Search, Canonical Pages URL, Metadata fixes #295

Closed fullreboot closed 3 years ago

fullreboot commented 3 years ago

-Fixes Search -Cleans up controller code -Fixes Pages canonical url (/posts/page-title --> /page-title)

Notes for future: getBlogPosts() and getSingleBlogPost() Method should be moved to domain if possible.

fullreboot commented 3 years ago

There's still an open bug in this pull request:

fullreboot commented 3 years ago

MVC Catch-All error has been fixed. While implementing the new pages canonical urls from /pages/{slug} to /{slug} the admin route /admin was being improperly intercepted.

Fixed in this commit which was automatically added to the PR

https://github.com/fullreboot/Blogifier/commit/5a178696014e75e30a61184ce88385c10ce73cbd

Added controller with explicit route /admin to catch request to admin page and serve proper index.html. Previously this route was being incorrectly handled by the /{slug} controller action