X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FUpgrading.pod;h=487787a9fdbe76b3e66e7aef6a80d0884f8fe0af;hp=6055442c8fd0a762ed957077992ef3ddb7107962;hb=a1dba4cf60acfe8c592a80dad86a076cd3eb1dec;hpb=6b9f9ef742c1ee771df336eed1db42d807c8c59c diff --git a/lib/Catalyst/Upgrading.pod b/lib/Catalyst/Upgrading.pod index 6055442..487787a 100644 --- a/lib/Catalyst/Upgrading.pod +++ b/lib/Catalyst/Upgrading.pod @@ -8,10 +8,6 @@ In older versions of Catalyst one could construct a L with a fragment (such https://localhost/foo/bar#fragment) by using a '#' in the path or final argument, for example: - $c->uri_for('/mypath#fragment'); - -or: - $c->uri_for($action, 'foo#fragment'); This behavior was never documented and would break if using the Unicode plugin, or when @@ -37,7 +33,15 @@ for a URI via ->uri_for: If you are relying on the previous side effect behavior your URLs will now encode the '#' delimiter, which is going to be a breaking change for you. You need to alter your code to match the new specification or modify uri_for for your local case. Patches to solve -this are very welcomed, as long as they don't break existing test cases. +this are very welcomed, as long as they don't break existing test cases. + +B If you are using the string form of the first argument: + + $c->uri_for('/foo/bar#baz') + +construction, we do not attempt to encode this and it will make a URL with a +fragment of 'baz'. + =head1 Upgrading to Catalyst 5.90095