Skip to content

Commit cd774d0

Browse files
committed
fix(guide): find section for page titles
fixes #259
1 parent 436c954 commit cd774d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/functions/oramaResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export async function oramaResponse(res: Response, resultUrl: string, user?: str
5555
return res;
5656
}
5757

58-
const section = findRelevantDocsSection(parsed.anchor ? `#${parsed.anchor}` : parsed.endpoint ?? '', docsContents);
58+
const section = findRelevantDocsSection(`#${parsed.anchor ?? parsed.endpoint}`, docsContents);
5959

6060
if (section) {
6161
const title = section.headline ?? parsed.endpoint ?? 'No Title';

0 commit comments

Comments
 (0)