This repository has been archived by the owner on Jul 21, 2021. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi @Martimiz,
I have been struggling to setup the routing for this module using SS 3.4.
I followed your instructions on https://github.com/Martimiz/silverstripe-languageprefix/blob/master/docs/en/routing.md, but it just didn't quite work. I then updated all the core routes from cms and framework and it seems to work.
Initially I had put the consolidated routes in mysite/_config/routes.yml, but then I thought it might be worthwhile to directly incorporate them in the module itself. Hence this PR.
What was your intention by having the routing in the instructions and not already setup in the code? SS version issues and maintainability, I assume?
Is there a way we can make this more flexible without re-defining all the core routes? And without having to setup the routing for each project manually (again)?
Cheers, Flo