Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add indexing configuration option for stripping trailing slashes from result links #776

Open
bglw opened this issue Jan 19, 2025 · 0 comments

Comments

@bglw
Copy link
Contributor

bglw commented Jan 19, 2025

Discussed in #749

Originally posted by paulrudy December 8, 2024
I'd like to suggest a Pagefind UI configuration option to strip trailing slashes in Pagefind results.

I understand that this can be done by passing a function to Pagefind's processResult config option as Astro's Starlight does.

But I think it might be useful enough, to enough people, to have as a standalone configuration option.

Thoughts:

I think the ideal would be to replace the keep-index-url indexing option with some sort of "URL behavior" option.

e.g. --url-format "trailing-slash" (default) or --url-format "keep-index" or --url-format "strip-trailing-slash"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant