Customize the indexed url (for example use the canonical url if provided)? #21
marcreichel
started this conversation in
Ideas
Replies: 1 comment
-
Resolved in #22 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@freekmurze
I'm currently facing the issue that I have multiple ways to get to specific pages on my website. Which have different query parameters when arriving there. This leads to having the same page in the search index (and results) multiple times.
I've dug through the docs (and code) multiple times but can not find any way to manipulate the URL being indexed (like in your spatie/laravel-sitemap package) because the
SearchProfileCrawlObserver
can not be customized (just like the search profile or indexer) or extended (and then set viaconfigureCrawler
because we do not have access to the constructor parameters for the observer class) right now.If there is no way currently I'd be happy to implement the possibility and create a PR then.
Beta Was this translation helpful? Give feedback.
All reactions