-
Notifications
You must be signed in to change notification settings - Fork 2
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
Updated logic to handle multilingual internal path redirects. #215
Conversation
Manually fixed conflicts in: src/Seed.php src/Utility.php
I'm still testing terms so moving this to draft for now. |
Nodes are working as expected but still need to test taxonomy terms. |
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.
Code looks good, just a minor question on using an entity method.
Tested seeding all nodes/terms and manually editing one node/term and everything seems fine. |
Changes were made based on feedback
@steveworley ready for re-review, thanks |
I added |
Not sure why it's complaining about that use statement as it's needed. |
Oh… of course, same directory… I’ll fix tomorrow |
Manually fixed merge conflict in: src/Seed.php
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.
Approving, code looks good — with the @todo to simplifier the logic in handleInternalPathRedirects
I think we could use the plugin system and contain each logic piece in a separate file so that we can more easily test and repeat this. Maybe we can create a backlog ticket for that, low priority when we have time :D
Added backlog ticket per Steve's comment: |
See details in these Drupal.org issues:
https://www.drupal.org/project/quantcdn/issues/3343237
https://www.drupal.org/project/quantcdn/issues/3413036
https://www.drupal.org/project/quantcdn/issues/3343245
Tested thoroughly with nodes/terms:
The only thing I noticed is that content is not created if it's unpublished to start with (though the canonical redirects are created). This is a separate issue that isn't very pressing.
See my chicken scratches and the comments below for all the permutations tested: