Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

url_for() stil buggy

#19

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
  • …

Reported by Fabrice Luraine · July 30th, 2009 @ 05:25 PM

State: resolved
Assigned to: Fabrice Luraine Fabrice Luraine

Activity

  1. Fabrice Luraine
    Fabrice Luraine
    • 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 url_for() stil buggy state:resolved] http://github.com/sofadesign/limonade/commit/53511751c23f087e7b58d6...

    July 31st, 2009 @ 06:44 PM

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.