statamic / seo-pro

An all-in-one site reporting, metadata wrangling, Open Graph managing, Twitter card making, sitemap generating, turn-key addon for Statamic.
https://statamic.com/addons/statamic/seo-pro
52 stars 34 forks source link

500 server error while executing redirect code. #282

Closed bispldeveloper closed 1 year ago

bispldeveloper commented 1 year ago

I have created one globals set, named as 'Permanent Redirects' in a site with field type array named as 'redirects'. It was made to work such as {{ current_uri }} stored in 'key' has to be redirected to 'value' ( in array field type named as 'redirects') The code shown below is used at the top of the of the site. {{ foreach:permanent_redirects:redirects}} {{ if current_uri == key }} {{ redirect to=value }} {{ /if }} {{ /foreach:permanent_redirects:redirects }}

It was working fine till Feb 2023 But it gives 500 server error in the latest updates of the seo pro addon. It works fine if we remove {{ seo_pro:meta }} from tag of the site. Could you please let me know what can be done to make it work same as before.

bispldeveloper commented 1 year ago

It works after deleting global fieldset named as "seo"