Skip to content

Commit

Permalink
'/' + base ------> prependForwardSlash(base)
Browse files Browse the repository at this point in the history
  • Loading branch information
MoustaphaDev committed May 15, 2023
1 parent 2b41270 commit 08c1b22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/astro/src/core/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export class App {
status = 200
): Promise<Response> {
const url = new URL(request.url);
const pathname = '/' + this.removeBase(url.pathname);
const pathname = prependForwardSlash(this.removeBase(url.pathname));
const info = this.#routeDataToRouteInfo.get(routeData!)!;
// may be used in the future for handling rel=modulepreload, rel=icon, rel=manifest etc.
const links = new Set<never>();
Expand Down

0 comments on commit 08c1b22

Please sign in to comment.