diff --git a/starters/apps/qwikcity-test/src/routes/issue5665/projects/index.tsx b/starters/apps/qwikcity-test/src/routes/issue5665/projects/index.tsx index 4fea0a70708..5b92493e3e0 100644 --- a/starters/apps/qwikcity-test/src/routes/issue5665/projects/index.tsx +++ b/starters/apps/qwikcity-test/src/routes/issue5665/projects/index.tsx @@ -2,17 +2,22 @@ import { component$ } from "@builder.io/qwik"; import { Link, useLocation } from "@builder.io/qwik-city"; export default component$((props) => { - const { url: { pathname } } = useLocation(); + const { + url: { pathname }, + } = useLocation(); - const isProjects = pathname.includes('projects') - const hrefPath = isProjects ? 'projekte' : 'projects' + const isProjects = pathname.includes("projects"); + const hrefPath = isProjects ? "projekte" : "projects"; return (

Issue 5665

-

Translated routes from rewriteRoutes get ignored for [...catchall] route in same folder

+

+ Translated routes from rewriteRoutes get ignored for [...catchall] route + in same folder +

- Go to {isProjects ? 'projekte' : 'projects'} + Go to {isProjects ? "projekte" : "projects"}
); diff --git a/starters/dev-server.ts b/starters/dev-server.ts index 4e6ef1d26a6..5333080b112 100644 --- a/starters/dev-server.ts +++ b/starters/dev-server.ts @@ -165,15 +165,17 @@ export { const qwikCityVite: typeof import("@builder.io/qwik-city/vite") = await import(file(qwikCityDistVite)); - plugins.push(qwikCityVite.qwikCity({ - rewriteRoutes: [ - { - paths: { - 'projects': 'projekte' + plugins.push( + qwikCityVite.qwikCity({ + rewriteRoutes: [ + { + paths: { + projects: "projekte", + }, }, - }, - ] - })); + ], + }), + ); } const getInlineConf = (extra?: InlineConfig): InlineConfig => ({