Skip to content

fix(core): strip trailing slash when looking up localized Makeswift page#2950

Open
agurtovoy wants to merge 1 commit intointegrations/makeswiftfrom
alekseygurtovoy/arr-614-localized-page-switching-returns-404-with-trailing-slash
Open

fix(core): strip trailing slash when looking up localized Makeswift page#2950
agurtovoy wants to merge 1 commit intointegrations/makeswiftfrom
alekseygurtovoy/arr-614-localized-page-switching-returns-404-with-trailing-slash

Conversation

@agurtovoy
Copy link
Copy Markdown
Contributor

What/Why?

Fix 404 on switching between localized Makeswift pages with locale-specific paths when running with TRAILING_SLASH=true.

Testing

Before:

Kapture.2026-03-23.at.18.30.06.mp4

After:

Kapture.2026-03-24.at.12.15.15.mp4

Migration

N/A

fixes locale switcher issue when running with TRAILING_SLASH=true
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 24, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
catalyst Ready Ready Preview, Comment Mar 24, 2026 5:16pm

Request Review

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 24, 2026

🦋 Changeset detected

Latest commit: 3535b24

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@bigcommerce/catalyst-makeswift Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

Bundle Size Report

Comparing against baseline from 91d8da7 (2026-03-24).

No bundle size changes detected.

targetLocale: string;
}) {
// Makeswift page pathnames are always stored without a trailing slash
const pathname = stripTrailingSlash(inputPathname);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Normalize the pathname before looking it up.

@agurtovoy agurtovoy marked this pull request as ready for review March 24, 2026 17:18
@agurtovoy agurtovoy requested a review from a team as a code owner March 24, 2026 17:18
@github-actions
Copy link
Copy Markdown
Contributor

Unlighthouse Performance Comparison — Vercel

Comparing PR preview deployment Unlighthouse scores vs production Unlighthouse scores.

Summary Score

Aggregate score across all categories as reported by Unlighthouse.

Prod Desktop Prod Mobile Preview Desktop Preview Mobile
Score 86 90 91 93

Category Scores

Category Prod Desktop Prod Mobile Preview Desktop Preview Mobile
Performance 70 78 82 95
Accessibility 91 91 95 95
Best Practices 95 100 95 95
SEO 89 89 100 100

Core Web Vitals

Metric Prod Desktop Prod Mobile Preview Desktop Preview Mobile
LCP 5.0 s 5.8 s 2.6 s 2.9 s
CLS 0.03 0.011 0 0
FCP 1.1 s 1.1 s 1.2 s 1.2 s
TBT 30 ms 30 ms 30 ms 20 ms
Max Potential FID 90 ms 110 ms 100 ms 80 ms
Time to Interactive 6.4 s 6.1 s 6.1 s 5.2 s

Full Unlighthouse report →

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