Skip to content
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

MNT Broken builds #1190

Merged

Conversation

emteknetnz
Copy link
Member

@emteknetnz emteknetnz commented Jan 24, 2023

Issue https://github.com/silverstripeltd/product-issues/issues/659

Fixes https://github.com/silverstripe/recipe-kitchen-sink/actions/runs/3990680546/jobs/6844618723#step:12:70
1) SilverStripe\UserForms\Tests\Model\Recipient\EmailRecipientTest::testShortcodesAreRenderedInEmailPreviewContent Failed asserting that '<p>Some email content. About us: /about-us.</p>' contains "/about-us/".

Broken behat tests will be fixed as part of https://github.com/silverstripeltd/product-issues/issues/644

Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

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

This broke because of silverstripe/silverstripe-framework#10538
Use Controller::normaliseTrailingSlash('/about-us') to protect against future config changes.

EDIT: While I do think what I've recommended is best practice, after an offline conversation I'll just merge this as-is. We can deal with best practices some time later.

@GuySartorelli GuySartorelli merged commit c11d22b into silverstripe:6 Jan 25, 2023
@GuySartorelli GuySartorelli deleted the pulls/6/broken-builds branch January 25, 2023 00:39
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.

2 participants