cleanup /index.html from search results (#1454)

This commit is contained in:
Cory LaViska
2023-07-13 16:20:26 -04:00
committed by GitHub
parent 414197acc9
commit 2e2a683d11
2 changed files with 5 additions and 2 deletions

View File

@@ -284,7 +284,7 @@
const a = document.createElement('a');
const displayTitle = page.title ?? '';
const displayDescription = page.description ?? '';
const displayUrl = page.url.replace(/^\//, '');
const displayUrl = page.url.replace(/^\//, '').replace(/\/$/, '');
let icon = 'file-text';
a.setAttribute('role', 'option');