Hi,
I have implemented redirection using JavaScript for Shopify recommended product string query URLs, but it isn’t returning a 301 status code. I also tried using Shopify’s own 301 redirect manager to redirect string query URLs, but the redirection for string query URLs doesn’t work there either. Can anyone help me return a 301 status code while redirecting string query URLs to non-string query URLs?
JS code I’ve used to redirect string query URLs:
Redirection preview:
String query URLs reported in GSC:

