mirror of
https://github.com/withastro/astro.git
synced 2025-02-03 22:29:08 -05:00
[ci] format
This commit is contained in:
parent
a40a0ff588
commit
70ae19d500
1 changed files with 3 additions and 3 deletions
|
@ -456,8 +456,8 @@ function getUrlForPath(
|
|||
pathname: string,
|
||||
base: string,
|
||||
origin: string,
|
||||
format: AstroConfig["build"]["format"],
|
||||
trailingSlash: AstroConfig["trailingSlash"],
|
||||
format: AstroConfig['build']['format'],
|
||||
trailingSlash: AstroConfig['trailingSlash'],
|
||||
routeType: RouteType
|
||||
): URL {
|
||||
/**
|
||||
|
@ -465,7 +465,7 @@ function getUrlForPath(
|
|||
* pathname: /, /foo
|
||||
* base: /
|
||||
*/
|
||||
const ending = format === 'directory' ? trailingSlash === 'never' ? '' : '/' : '.html';
|
||||
const ending = format === 'directory' ? (trailingSlash === 'never' ? '' : '/') : '.html';
|
||||
let buildPathname: string;
|
||||
if (pathname === '/' || pathname === '') {
|
||||
buildPathname = base;
|
||||
|
|
Loading…
Add table
Reference in a new issue