BUG
Using 8.0.3. If you have an "#" in the product reference, this breaks the New Products list (and possibly other links Related, etc) that go via the SearchScript).
DEMO
To see this fault make a product with a # in the reference, put it in the New Products list and you'll get an error message if you try to follow the "find out more" link in the New Products list on the generated page.
REASON
Actinic should be URL encoding the product reference when it's used in such links and it isn't.
WORKAROUND
Luckily we have so much control in V8 that we can fix this ourselves.
The line in the New Products list that generates the link is
and we can replace it with
NOTES
This just fixes the New Products list and will need repeated elsewhere that such links are used.
If I search the Library / Layouts for <a href="<actinic:variable name="SearchCGIURL" />?PRODREF=<Actinic:Variable Name="ProdRef"/>&NOLOGIN=1 there are a lot of such entries.
Using 8.0.3. If you have an "#" in the product reference, this breaks the New Products list (and possibly other links Related, etc) that go via the SearchScript).
DEMO
To see this fault make a product with a # in the reference, put it in the New Products list and you'll get an error message if you try to follow the "find out more" link in the New Products list on the generated page.
REASON
Actinic should be URL encoding the product reference when it's used in such links and it isn't.
WORKAROUND
Luckily we have so much control in V8 that we can fix this ourselves.
The line in the New Products list that generates the link is
Code:
<a href="<actinic:variable name="SearchCGIURL" />?PRODREF=<actinic:variable name="ProductReference" />&NOLOGIN=1<actinic:block if="%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e">&SHOP=<actinic:variable name="ShopID" /></actinic:block>">find out more</a></p>
Code:
<a href="<actinic:variable name="SearchCGIURL" />?PRODREF=<actinic:block php="true">echo urlencode('<actinic:variable name="ProductReference" encoding="perl" selectable="false" />');</actinic:block>&NOLOGIN=1<actinic:block if="%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e">&SHOP=<actinic:variable name="ShopID" /></actinic:block>">find out more</a></p>
This just fixes the New Products list and will need repeated elsewhere that such links are used.
If I search the Library / Layouts for <a href="<actinic:variable name="SearchCGIURL" />?PRODREF=<Actinic:Variable Name="ProdRef"/>&NOLOGIN=1 there are a lot of such entries.
Comment