Issues

ZF-1889: Bug on Zend_Controller_Router_Route::assemble which makes to not be possible to assembe url's using a different route

Description

foreach (array_reverse($url, true) as $key => $value) { if ($flag || !isset($this->_parts[$key]['name']) || $value !== $this->getDefault($this->_parts[$key]['name'])) { $return = '/' . $value . $return; $flag = true; } }

    return trim($return, '/');

Should be changed to this:

    foreach (array_reverse($url, true) as $key => $value) {
        if ($flag || !isset($this->_parts[$key]['name']) || $value !== $this->getDefault($this->_parts[$key]['name'])) {
            $return = $this->_urlDelimiter . $value . $return;
            $flag = true;
        }
    }

    return trim($return, $this->_urlDelimiter);

Otherwise won't be generated a proper url if we going to use our own Router, with our own _urlDelimiter;

Comments

Assign to Matthew.

Assigning to Martel

Good catch, Cristian. Fixed on trunk. Thanks.

Fixes 1.1.0 but not also 1.0.2 until changes are merged to release-1.0 branch