Skip to content

Commit

Permalink
Merge pull request #2086 from krisztianb/bugfix/2085-invalid-title-link
Browse files Browse the repository at this point in the history
Fix wrong handling of missing/empty titleLink option value
  • Loading branch information
Gerrit0 committed Oct 28, 2022
2 parents e3d2801 + ff8526c commit a3cc365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/output/themes/default/partials/toolbar.tsx
Expand Up @@ -27,7 +27,7 @@ export const toolbar = (context: DefaultThemeRenderContext, props: PageEvent<Ref
<li class="state failure">The search index is not available</li>
</ul>

<a href={context.options.getValue("titleLink") ?? context.relativeURL("index.html")} class="title">
<a href={context.options.getValue("titleLink") || context.relativeURL("index.html")} class="title">
{props.project.name}
</a>
</div>
Expand Down

0 comments on commit a3cc365

Please sign in to comment.