Hello,
Very strange. After upgrading today, it seems my {redirect} variables are all going to SITE_INDEX. Here’s the setup:
In my template:
{redirect="{embed:template_group}/{url_title}"}The argument ($str) passed to extract_path() in Functions.php:
=about/the-madeup-entryIt doesn’t hit the conditional that follows (Line 299 in Functions.php) because of the Regex:
preg_match("#=(.*)".RD."#", $str, $match)It’s looking for the string to end with a trailing “}” so it defaults to “SITE_INDEX” which is incorrect. Modifying the regex to be this:
preg_match("#=(.*)#", $str, $match)Causes it to work, but this particular function is used in a lot of places and I’m worried that the “RD” part was there for a reason. Can you offer any insight on why it’s wanting a trailing bracket in this function?
A quick echo of all arguments that this function was passed in one page load (down to my redirect) showed that none of them actually had trailing brackets:
url_title_path="visit"
url_title_path="visit"
url_title_path="visit"
url_title_path="visit"
url_title_path="visit"
url_title_path="visit"
url_title_path="visit"
url_title_path="visit"
url_title_path="visit"
url_title_path="visit"
url_title_path="visit"
url_title_path="visit"
url_title_path="visit"
url_title_path="visit"
url_title_path="visit"
url_title_path="visit"
url_title_path="calendar-exhibitions"
url_title_path="calendar-exhibitions"
url_title_path="calendar-exhibitions"
url_title_path="calendar-exhibitions"
url_title_path="join-support"
url_title_path="join-support"
url_title_path="join-support"
url_title_path="join-support"
url_title_path="join-support"
url_title_path="join-support"
url_title_path="learn"
url_title_path="learn"
url_title_path="learn"
url_title_path="learn"
url_title_path="learn"
url_title_path="learn"
url_title_path="learn"
url_title_path="learn"
url_title_path="learn"
url_title_path="learn"
url_title_path="community"
url_title_path="community"
url_title_path="community"
url_title_path="community"
url_title_path="community"
url_title_path="community"
url_title_path="community"
url_title_path="community"
url_title_path="about"
url_title_path="about"
url_title_path="about"
url_title_path="about"
url_title_path="about"
url_title_path="about"
url_title_path="about"
url_title_path="about"
url_title_path="about"
url_title_path="about"
url_title_path="about"
url_title_path="about"
url_title_path="about"
url_title_path="about"
=about/the-madeup-entrySo I’m wondering if this is a bug?
Thanks!
Jesse