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

fix(gatsby): Set trailingSlash default to "always" #36798

Merged
merged 15 commits into from
Oct 20, 2022
Merged

Conversation

LekoArts
Copy link
Contributor

@LekoArts LekoArts commented Oct 11, 2022

Description

Cont'd from #34268 setting our default value for trailingSlash from legacy to always + removing legacy.

Documentation

Will be updated in #36763

Related Issues

[ch53712]

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Oct 11, 2022
@LekoArts LekoArts added topic: core Relates to Gatsby's core (e.g. page loading, reporter, state machine) and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Oct 11, 2022
@LekoArts LekoArts added this to the Gatsby 5 milestone Oct 11, 2022
@@ -20,7 +27,7 @@ function absolutify(path, current) {
const absolutePath = resolve(path, current)

if (option === `always` || option === `never`) {
return applyTrailingSlashOption(absolutePath, option)
return applyTrailingSlashOptionOnPathnameOnly(absolutePath, option)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this basically what #36828 is doing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: core Relates to Gatsby's core (e.g. page loading, reporter, state machine)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants