url_for() stil buggy
Reported by Fabrice Luraine | July 30th, 2009 @ 05:25 PM | in Release 0.4 - Fresh Mint And Ginger
When your in your root url, there is no ending ?
or
index.php
in your url: url_for()
produces
malformed urls with no ?
or index.php
between the base_path and the path... resulting a 404 error...
Needs to provide a base_path()
function (or
something like that) to be ok with paths and urls in many
cases:
- with or without url rewriting
- in a subdirectory or directly in the DOCUMENT_ROOT
- at the root app path '/'
- with
/?/my_path
- with
/index.php/my_path
- with
/index.php?/my_path
- with
/?/my_path
- with
/?uri=/my_path
- with
/?u=/my_path
- …
Comments and changes to this ticket
-
Fabrice Luraine July 31st, 2009 @ 06:44 PM
- State changed from new to resolved
(from [53511751c23f087e7b58d6b939a673d55ce085aa]) Fixing url_for() bug by a adding base_uri option; option 'base_uri' can be explicitly set for url_rewriting [#19 state:resolved] http://github.com/sofadesign/limonade/commit/53511751c23f087e7b58d6...
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
- 19 url_for() stil buggy (from [53511751c23f087e7b58d6b939a673d55ce085aa]) Fixing ...