-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
fix: [Auto Routing Improved] one controller method has more than one URI when $translateURIDashes is true #7422
Merged
kenjis
merged 10 commits into
codeigniter4:4.4
from
kenjis:fix-auto-routing-improved-setTranslateURIDashes-4.4
Jul 3, 2023
Merged
fix: [Auto Routing Improved] one controller method has more than one URI when $translateURIDashes is true #7422
kenjis
merged 10 commits into
codeigniter4:4.4
from
kenjis:fix-auto-routing-improved-setTranslateURIDashes-4.4
Jul 3, 2023
+239
−18
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kenjis
added
bug
Verified issues on the current code behavior or pull requests that will fix them
4.4
labels
Apr 12, 2023
kenjis
force-pushed
the
fix-auto-routing-improved-setTranslateURIDashes-4.4
branch
from
April 12, 2023 07:35
2eb3948
to
fc5be36
Compare
kenjis
changed the title
fix: [Auto Routing Improved] one controller has two URIs when $translateURIDashes is true
fix: [Auto Routing Improved] one controller method has two URIs when $translateURIDashes is true
Apr 12, 2023
kenjis
changed the title
fix: [Auto Routing Improved] one controller method has two URIs when $translateURIDashes is true
fix: [Auto Routing Improved] one controller method has more than one URI when $translateURIDashes is true
Apr 12, 2023
kenjis
force-pushed
the
fix-auto-routing-improved-setTranslateURIDashes-4.4
branch
from
April 13, 2023 11:34
fc5be36
to
bdc10f1
Compare
kenjis
force-pushed
the
fix-auto-routing-improved-setTranslateURIDashes-4.4
branch
from
June 2, 2023 08:38
bdc10f1
to
28350f3
Compare
Rebased and added docs. |
When converting dashes to underscores, two URIs correspond to a single controller, one URI for dashes and one URI for underscores. This was incorrect behavior, contrary to the design philosophy.
kenjis
force-pushed
the
fix-auto-routing-improved-setTranslateURIDashes-4.4
branch
from
June 14, 2023 01:41
88a8e2e
to
78b450c
Compare
Rebased to resolve conflicts. |
MGatner
approved these changes
Jul 3, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice testing solution. Really glad you made this class final
to begin with! I'd like to make most service classes final
in v5
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Needs #7406Description
When
$translateURIDashes
is true, two URIs correspond to a single controller method,one URI for dashes (
foo-bar
) and one URI for underscores (foo_bar
).This is incorrect behavior, contrary to the design philosophy.
This PR prohibits the URI for underscores (
foo_bar
) when$translateURIDashes
is true.Checklist: