Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity committed Feb 5, 2025
1 parent 2425d9c commit c6e7113
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function createPageLoaderGetDataHref(
const buildId = window.__NEXT_DATA__.buildId;
const { pathname: hrefPathname, query, search } = parseRelativeUrl(href);
const { pathname: asPathname } = parseRelativeUrl(asPath);
let route = addLeadingSlash(removeTrailingSlash(hrefPathname));
const route = addLeadingSlash(removeTrailingSlash(hrefPathname));

const getHrefForSlug = (path: string) => {
// note: getAsssetPathFromRoute will automatically turn `/` to `/index`
Expand Down

0 comments on commit c6e7113

Please sign in to comment.