Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search, Canonical Pages URL, Metadata fixes #295

Merged
merged 7 commits into from
Sep 19, 2021

Conversation

fullreboot
Copy link
Contributor

@fullreboot fullreboot commented Sep 13, 2021

-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.

-Fixes Search
-Cleans up controller code

Notes for future: getBlogPosts() Method should be moved to domain if possible. DTO object needed?
@fullreboot fullreboot mentioned this pull request Sep 13, 2021
6 tasks
@fullreboot
Copy link
Contributor Author

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

  • Route conflict with HttpGet["{slug}"] and serving the static file index.html for the route /admin or /admin/

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
@fullreboot
Copy link
Contributor Author

fullreboot commented Sep 14, 2021

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

fullreboot@5a17869

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

@fullreboot fullreboot changed the title Search fix Search, Canonical Pages URL, Metadata fixes Sep 14, 2021
@rxtur rxtur merged commit 376e3d8 into blogifierdotnet:main Sep 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants