Skip to content

Commit

Permalink
Revert change to router utils
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Nov 28, 2022
1 parent 5c09cce commit 402235d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/remix-server-runtime/router/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -818,8 +818,7 @@ export function resolvePath(to: To, fromPathname = "/"): Path {
} = typeof to === "string" ? parsePath(to) : to;

let pathname = toPathname
? // we don't want to prepend the fromPathname on root or external toPathnames'
toPathname.startsWith("/") || toPathname.startsWith("http")
? toPathname.startsWith("/")
? toPathname
: resolvePathname(toPathname, fromPathname)
: fromPathname;
Expand Down

0 comments on commit 402235d

Please sign in to comment.