patrickdemooij9 / SeoToolkit.Umbraco

SeoToolkit is a SEO package for Umbraco 9, 10, 11, 12 & 13. This package features most functionalities needed for your SEO needs like meta fields, sitemap, robots.txt and much more.
MIT License
34 stars 28 forks source link

Missing info about regex in docs #230

Closed henryson closed 10 months ago

henryson commented 11 months ago

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 commented 11 months ago

This might be related to https://github.com/patrickdemooij9/SeoToolkit.Umbraco/issues/227

patrickdemooij9 commented 10 months ago

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