Skip to content

Commit a3cc365

Browse files
authored
Merge pull request #2086 from krisztianb/bugfix/2085-invalid-title-link
Fix wrong handling of missing/empty titleLink option value
2 parents e3d2801 + ff8526c commit a3cc365

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/output/themes/default/partials/toolbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const toolbar = (context: DefaultThemeRenderContext, props: PageEvent<Ref
2727
<li class="state failure">The search index is not available</li>
2828
</ul>
2929

30-
<a href={context.options.getValue("titleLink") ?? context.relativeURL("index.html")} class="title">
30+
<a href={context.options.getValue("titleLink") || context.relativeURL("index.html")} class="title">
3131
{props.project.name}
3232
</a>
3333
</div>

0 commit comments

Comments
 (0)