Skip to content

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