summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/astro/src/core/dev/index.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/astro/src/core/dev/index.ts b/packages/astro/src/core/dev/index.ts
index 04b0abf7a..e1fe59a8f 100644
--- a/packages/astro/src/core/dev/index.ts
+++ b/packages/astro/src/core/dev/index.ts
@@ -280,12 +280,12 @@ export class AstroDevServer {
let routePathname: string = pathname;
// If using a subpath, ensure that the user has included the pathname
// such as /blog in the URL.
- if(this.devRoot !== '/') {
- if(pathname.startsWith(this.devRoot)) {
+ if (this.devRoot !== '/') {
+ if (pathname.startsWith(this.devRoot)) {
// This includes the subpath, so strip off the subpath so that
// matchRoute finds this route.
routePathname = pathname.substr(this.devRoot.length) || '';
- if(!routePathname.startsWith('/')) {
+ if (!routePathname.startsWith('/')) {
routePathname = '/' + routePathname;
}
} else {