diff options
author | 2025-04-15 06:41:28 +0000 | |
---|---|---|
committer | 2025-04-15 06:41:28 +0000 | |
commit | 0e5b4cedda0b16db5b8dd4ffdc831479bb1d44db (patch) | |
tree | 4d4dd596ddb8bdcd374314c2d557834e0edba09e | |
parent | f5de51e94755cdbeaa19667309b5f1aa0c416bd4 (diff) | |
download | astro-0e5b4cedda0b16db5b8dd4ffdc831479bb1d44db.tar.gz astro-0e5b4cedda0b16db5b8dd4ffdc831479bb1d44db.tar.zst astro-0e5b4cedda0b16db5b8dd4ffdc831479bb1d44db.zip |
[ci] format
-rw-r--r-- | packages/astro/src/core/routing/rewrite.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/astro/src/core/routing/rewrite.ts b/packages/astro/src/core/routing/rewrite.ts index 5ed1882b9..a8d7862f6 100644 --- a/packages/astro/src/core/routing/rewrite.ts +++ b/packages/astro/src/core/routing/rewrite.ts @@ -53,12 +53,12 @@ export function findRouteToRewrite({ let pathname = newUrl.pathname; const shouldAppendSlash = shouldAppendForwardSlash(trailingSlash, buildFormat); - + // Special handling for base path if (base !== '/') { // Check if this is a request to the base path - const isBasePathRequest = newUrl.pathname === base || - newUrl.pathname === removeTrailingForwardSlash(base); + const isBasePathRequest = + newUrl.pathname === base || newUrl.pathname === removeTrailingForwardSlash(base); if (isBasePathRequest) { // For root path requests at the base URL |