-
Notifications
You must be signed in to change notification settings - Fork 333
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
Remove trailing slash from SiteTree links if no action present #2780
Comments
@GuySartorelli #2771 covers criteria 1, I'll submit individual PRs in framework for the others ( |
Please do all of these together in the same PR - it will make it a lot easier to review. As far as we're concerned it's all part of the same change. |
@GuySartorelli fair enough. But do you agree that the adding/removing of the trailing slash should happen in |
Ahh, good point - for some reason I thought the original PR was in framework 😅 I can't remember what exactly the redirection was tbh - I'll get @maxime-rainville to speak to that part of it since he wrote the criteria. |
I would suppose something similar to what https://github.com/axllent/silverstripe-trailing-slash does would be appropriate for the redirection. |
|
@GuySartorelli any updates on this? |
Sorry @xini, I haven't had time to look at this. It's in our ready column for anyone in the team to pick up and review, but it's not the heighest priority item in the list right now. |
@GuySartorelli that's ok, thanks. |
@xini I've cleaned up the PRs, and added some for the necessary javascript adjustments. Please give the changes a look-over to make sure you're happy with them, but regardless, once the installer CI run linked in this issue is finished and passing correctly I'll kcik this over to someone else to review (now that I've done some of the work I can't finish the review myself) |
@GuySartorelli thank you very much! It looks good to me, but I can't really comment on the js side of things. Are the failing tests related or not? |
The PRs are inter-related, so it's basically impossible for the individual PRs to go green. That's what the installer CI run is for, linked in the description of the issue. |
right. ok. thanks! |
@GuySartorelli half the PRs are still draft? |
@emteknetnz Yes. This is explained in the PRs but for convenience: I've included those changes in the built js by building with a local copy of the changes, but CI and subsequent So we'll need to get that one out the door, then I'll update the relevant PRs and mark them ready, and then those can be merged. But the work as a whole should be reviewed before anything is merged. |
All PRs are merged. |
@GuySartorelli thanks so much! |
Silverstripe CMS currently is inconsistent as to whether URLs have a trailing slash or not - in fact there's a whole module dedicated to resolving this.
We should make this consistent.
Acceptance criteria
Installer CI
This CI run includes all of the below PRs - if its phpunit and behat tests are clean, we should be okay to merge.
https://github.com/creative-commoners/silverstripe-installer/actions/runs/3962646464
Note that the unit tests failing are related to graphql and are not related to these PRs at all. These will be dealt with in a separate future "broken builds" card.
PRs
Merge in this specific order - but don't merge any until we're happy that they all seem correct..
The text was updated successfully, but these errors were encountered: