Skip to content

Commit

Permalink
test(i18n): resolve mantainer comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mtwilliams-code committed Dec 4, 2024
1 parent a0b65cc commit 3e42275
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .changeset/kind-mayflies-argue.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
'astro': minor
'astro': patch
---

pass search params to i18n fallbacks
Fixes a bug where URL search parameters weren't passed when using the i18n `fallback` feature.
4 changes: 2 additions & 2 deletions packages/astro/test/i18n-routing.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1587,8 +1587,8 @@ describe('[SSR] i18n routing', () => {
let response = await app.render(request);
assert.equal(response.status, 200);
const text = await response.text();
assert.equal(text.includes('Oi essa e start'), true);
assert.equal(text.includes('search=1'), true);
assert.match(text, /Oi essa e start/);
assert.match(text, /search=1/);
});

it('should include search on the redirect when using fallback', async () => {
Expand Down

0 comments on commit 3e42275

Please sign in to comment.