Subject: | Template::Plugin::URL uses '&' for joining parameters |
I want to use Template::Plugin::URL for generating a URL
in JavaScript statements and others (not HTML!). But
Template::Plugin::URL generates a BAD URL when URL has
query parameters.
For example:
[% USE url(/cgi‐bin/baz.pl, mode=browse, debug=1) %]
[% url %]
generates:
/cgi‐bin/baz.pl?mode=browse&debug=1
This is good for HTML, but BAD for JavaScript and others.
This problem is introduced in Template-Toolkit version
2.00-rc2 14th November 2000, described in 'Changes'
file as:
* Applied a patch from Leon Brocard which corrects
the behaviour of the URL plugin to join parameters
with '&' instead of '&'.
For HTML, user can escape '&' in URL without this change
as below:
[% url | html %]
Please revert this BAD change.