Zend Framework

Missing prefix in action controller helper url

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.0.1
  • Fix Version/s: 1.0.3
  • Component/s: Zend_Controller
  • Labels:
    None

Description

Affected File: Zend/Controller/Action/Helper/Url.php

The returned url from the simple method should have an "/" as prefix, that dynamic created url`s will be redirected correct by the browser.

An possible patch could be:

--- Url.php     2007-09-05 14:39:14.404473800 +0200
+++ Url.php  2007-09-06 21:53:02.218750000 +0200
@@ -73,6 +73,8 @@
             $url .= '/' . $paramString;
         }

+        $url = '/' . ltrim($url, '/');
+
         return $url;
     }

Activity

Hide
Thomas Weidner added a comment -

Assigned to Matthew

Show
Thomas Weidner added a comment - Assigned to Matthew
Hide
Matthew Weier O'Phinney added a comment -

Scheduling for 1.0.3

Show
Matthew Weier O'Phinney added a comment - Scheduling for 1.0.3
Hide
Matthew Weier O'Phinney added a comment -

Resolved in r6866 of trunk; will merge to release branch shortly.

Show
Matthew Weier O'Phinney added a comment - Resolved in r6866 of trunk; will merge to release branch shortly.
Hide
Matthew Weier O'Phinney added a comment -

resolved in r6872.

Show
Matthew Weier O'Phinney added a comment - resolved in r6872.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: