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 example of URL redirect with multiple source urls #626

Open
thibaultmol opened this issue Dec 10, 2024 · 1 comment
Open

Add example of URL redirect with multiple source urls #626

thibaultmol opened this issue Dec 10, 2024 · 1 comment
Labels
product:kagi_search Related to Kagi Search documentation status:needs_review This issue needs review by a Staff member.

Comments

@thibaultmol
Copy link
Contributor

Relevant Page(s)

https://help.kagi.com/kagi/features/redirects.html

Description

Currently no example is being shown of a URL redirect which has multiple targets.

I'm currently running into a problem for ex where I can't get a working url redirect working (although mine is more complicated the example i'm asking for is probably):

^https://(medium.com|betterhumans.coach.me|ai.plainenglish.io|drlee.io)(/.*)?|https://scribe.pussthecat.org$2

Also the docs are directing users to regex101 and such. But don't even pass the simple examples given (the / isn't escaped, it complains).

I have little regex experience, so maybe it's just me. But yeah, this is confusing and could be improved

@thibaultmol thibaultmol added product:kagi_search Related to Kagi Search documentation status:needs_review This issue needs review by a Staff member. labels Dec 10, 2024
@thibaultmol
Copy link
Contributor Author

again, linking to regex101 is bad cause it will never validate correctly.

While this isn't a website for validating, it does help with visualizting, so it's worth adding atleast this: regex-viz

example

https://regex-vis.com/?r=%5Ehttps%3A%2F%2F%28medium%5C.com%7Cbetterhumans%5C.coach%5C.me%7Cai%5C.plainenglish%5C.io%7Cdrlee%5C.io%29%28%2F.*%29%3F%7Chttps%3A%2F%2Fscribe.pussthecat.org%242

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product:kagi_search Related to Kagi Search documentation status:needs_review This issue needs review by a Staff member.
Projects
None yet
Development

No branches or pull requests

1 participant