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

Prevent duplicate parts/names in URLs #152

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Physikbuddha
Copy link
Contributor

Please bear with me if I get this wrong, but as far as my understanding of this extension goes, there are different plugins to show blog posts for a certain author, tag, category and year (archive).

This means, that each plugin is supposed to go on a separate page. This is exactly what the automatic setup does.

So, because we are already on a page named "Archive", "Category", "Tag" or "Author", the route enhancer should not add this piece of information again, as this gives us URLs like
https://example.domian/blog/tag/tag/exampletag or
https://example.domian/blog/archive/archive/2020/may

At least that's what happens on the website I'm currently developing.

It makes sense for extensions like news, where there's a single plugin on a single page that fits all.

If my logic so far is correct, and I'm not missing some use-cases, this pull request removes the redundant URL parts from the route enhancer configuration.

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.

1 participant