Permalink
Browse files

route masks in url bug fix

  • Loading branch information...
1 parent 872e7a9 commit 2215487b8d1b6bb84409521b1c493a4bb586c5be @viveleroi committed May 23, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 system/template/Template.php
@@ -649,11 +649,11 @@ public function url($path = false, $bits = false){
if(isset($route['interface'])){
if(strtolower($route['interface']) == strtolower($r['interface'])){
$route_mask = $mask;
- $url .= $mask;
+ $url .= '/'.$route['uri'];
}
} else {
$route_mask = $mask;
- $url .= $mask;
+ $url .= '/'.$route['uri'];
}
}
}
@@ -677,6 +677,7 @@ public function url($path = false, $bits = false){
$url .= '/' . urlencode($value);
}
}
+ $url .= '/'; // always use a trailing slash
}
}

0 comments on commit 2215487

Please sign in to comment.