Unable to use hash with url_for / redirect_to
Reported by Fabrice Luraine | August 14th, 2009 @ 06:34 PM | in Release 0.4 - Fresh Mint And Ginger
This might be a problem if you want to pass a hash location in
your url. This is due by the fact we use
rawurlencode()
function that converts '#'
in '%23'
This can be fixed by replacing this line in
url_for()
if(!empty($v)) $paths[] = rawurlencode($v);
with
if(!empty($v)) $paths[] = str_replace('%23', '#', rawurlencode($v));
Comments and changes to this ticket
-
Fabrice Luraine October 17th, 2009 @ 06:41 PM
- State changed from new to resolved
(from [4ca6db98d2590ac4bda158588c51361ac4ad0b17]) Allow to use hash with url_for / redirect_to [#26 state:resolved] http://github.com/sofadesign/limonade/commit/4ca6db98d2590ac4bda158...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Limonade is a PHP micro-framework.
People watching this ticket
Referenced by
- 26 Unable to use hash with url_for / redirect_to (from [4ca6db98d2590ac4bda158588c51361ac4ad0b17]) Allow t...