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

Missing info about regex in docs #230

Closed
henryson opened this issue Sep 14, 2023 · 2 comments
Closed

Missing info about regex in docs #230

henryson opened this issue Sep 14, 2023 · 2 comments
Labels
Help Wanted Extra attention is needed

Comments

@henryson
Copy link

I am trying to add a redirect in SEO Toolkit and I want to use the regex function. There is one example in the docs and I tried to use that example but I don't get it to work.

I want an URL with language 'sv' to remove that URL segment like this:

www.domain.com/sv/mypage => www.domain.com/mypage

This is my attempt in SEO Toolkit:

^/sv/?(.*) = /$1

It does not work. I am a bit familiar with regex but not how it is expected to be used in this context.

So this issue is about extending the docs, but I would also appreciate help with my specific problem :-)

Cheers and thanks for a great package!

Josef/

@grafsnikers
Copy link

This might be related to #227

@patrickdemooij9 patrickdemooij9 added the Help Wanted Extra attention is needed label Oct 3, 2023
@patrickdemooij9
Copy link
Owner

Hi @henryson
Sorry for the late reply. This was indeed causing by a bug in the code if your redirect was set to All Sites
image

This will be fixed in the latest version of SeoToolkit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help Wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants