Skip to content

Commit

Permalink
Add a default for base to fix url undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
taras committed Jan 20, 2025
1 parent 01d813e commit a9741fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/docs-route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ function NextPrevLinks(
Previous
<a
class="py-2 block text-xl font-bold text-blue-primary no-underline tracking-wide leading-5 before:content-['«&nbsp;'] before:font-normal"
href={`${base}${prev.id}`}
href={`${base ?? ""}${prev.id}`}
>
{prev.title}
</a>
Expand All @@ -163,7 +163,7 @@ function NextPrevLinks(
Next
<a
class="py-2 block text-xl font-bold text-blue-primary no-underline tracking-wide leading-5 after:content-['&nbsp;»'] after:font-normal"
href={`${base}${next.id}`}
href={`${base ?? ""}${next.id}`}
>
{next.title}
</a>
Expand Down

0 comments on commit a9741fe

Please sign in to comment.