ソースを参照

Merge pull request #6155 from ADmad/router

Apply url filters before merging current request's params.
Mark Story 11 年 前
コミット
80e2008d6e
1 ファイル変更2 行追加1 行削除
  1. 2 1
      src/Routing/Router.php

+ 2 - 1
src/Routing/Router.php

@@ -594,6 +594,8 @@ class Router
                 unset($url['_ssl']);
             }
 
+            $url = static::_applyUrlFilters($url);
+
             if (!isset($url['_name'])) {
                 // Copy the current action if the controller is the current one.
                 if (empty($url['action']) &&
@@ -615,7 +617,6 @@ class Router
                 ];
             }
 
-            $url = static::_applyUrlFilters($url);
             $output = static::$_collection->match($url, static::$_requestContext + ['params' => $params]);
         } else {
             $plainString = (