The Friendly URL implementation seems to affect the passing of URL parameters in Evo. I have a calendar script that works perfectly in a non-MODx file, epc.php. When I click the next month link, I get:
epc.php?mo=12&yr=2012, then
epc.php?mo=1&yr=2013, etc. As expected.
I put the same script in a MODx resource, events-test.php, on a site with Friendly URLs. When I click the next month link, I get:
events-test.php?q=events-test.php&mo=12&yr=2012
then (I added spaces to prevent forum from converting & chars)
events-test.php?q=events-test.php & amp;amp;q=events-test.php & amp;amp;mo=12 & amp;amp;yr=2012 & mo=1 & yr=2013
,
and after that it gets really messy!
I believe it is the htaccess that is adding the q parameter - this line:
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
In the MODx configuration, Site tab, I have
XHTML URLs set to Yes. Apparently this "Replaces ampersand (& ) characters in urls that are generated by MODx with the validating & htmlentity." This is probably what is changing & to "& amp ; amp ;" (spaces inserted again).
Does anyone have any suggestions for cleaning up these generated URLs?
[ed. note: pogopogo last edited this post 13 years, 11 months ago.]