Bug #1264

Routes with default values for "multiple route part" segments are not resolved correctly

Added by Bastian Waidelich over 13 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Must have
Category:
MVC
Target version:
-
Start date:
2008-08-11
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
Complexity:

Description

With the new possibility to add multiple route parts in one URL pattern segment (see #1250) a new issue emerged:
The route "[firstName]-[lastName]/[@action]" is not resolved correctly if defaults are set for lastName and @action and lastName is empty in request URL (e.g. "john-/list").
This happens because static route part handler cuts first url segment from request path when matching the hyphen.

#1

Updated by Bastian Waidelich over 13 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r1120.

Also available in: Atom PDF