Skip to content

Statamic v6 Support - #394

Closed
jesseleite wants to merge 2 commits into
6.xfrom
statamic-v6-support
Closed

Statamic v6 Support#394
jesseleite wants to merge 2 commits into
6.xfrom
statamic-v6-support

Conversation

@jesseleite

@jesseleite jesseleite commented Jul 18, 2025

Copy link
Copy Markdown
Contributor

TODO:

* Add config to enforce trailing slashes on sitemap.

* Handle sitemap config.

* Fix `home_url` trailing slash in generated meta.

* Make config a bit more generic.

* Add trailing slash test coverage for URLs in sitemap.

* Add missing test coverage for `next_url`and `prev_url`.

* Add test coverage to ensure trailing slashes are output in meta cascade

* Implement trailing slashes in cascade.

* Pass failing tests around trailing slash on canonical.

* Add coverage to ensure trailing slashes go back to how user had them pre-cascade.

* Pass all tests again.

* Temporary constraint for CI, since v6 is on master atm.

* Exact version.

* Tighten constraints more.

* Drop old PHP/Laravel versions from test matrix because Statamic v6 does.

* Kick test suite.

* More updates to test matrix.

* This PR in core isn't merged yet.

* Revert `urls.enforce_trailing_slashes` config on SEO Pro side, as discussed.

We think most use cases revolve around use cases like Netlify/etc., so it's probable that the user then wants trailing slashes on all URLs, not just in SEO meta/sitemap. The fact that we were turning it on and off, could end up generating inaccurate stache. We can revisit later if this is needed.

* This test is really only concerned with pagination.

* Add basic test coverage for the actual generated meta.

* Add note in documentation.
@jesseleite
jesseleite marked this pull request as draft July 18, 2025 17:09
@jesseleite jesseleite self-assigned this Jul 18, 2025
@jasonvarga jasonvarga mentioned this pull request Sep 12, 2025
Comment thread composer.json
},
"require": {
"statamic/cms": "^5.45.1"
"statamic/cms": "dev-url-trailing-slashes as 6.0"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"statamic/cms": "dev-url-trailing-slashes as 6.0"
"statamic/cms": "^6.0"

@duncanmcclean
duncanmcclean deleted the statamic-v6-support branch September 30, 2025 11:43
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.

3 participants