redirect-module
redirect-module copied to clipboard
Module fails to return a redirect, for URI's that contain query strings
Query string rules do not work - such as:
/news/?filter_category=universities
=> /loop
It simply returns a 404.
Hi @toddpadwick, I've found an easy solution for this problem.
The field from
is expecting a regex, so the problem is that ?
will be interpret as a quantifier.
To fix the problem, you have to escape special characters with \
You should have something like that:
{ from: '/news\?filter_category=universities', to: '/loop' }
Ah okay thank you @Thomas-Deasington . That works now!