Skip to content

Commit

Permalink
fix UrlManager to use default controller if not specified
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgeniy Golovin committed Dec 1, 2014
1 parent 5d6dadc commit e2b8442
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions framework/components/UrlManager.os
Expand Up @@ -55,6 +55,9 @@ UrlManager = extends Component {
return route
}
}
if(request.pathInfo === ""){
return null
}
/* echo <<<END"<pre>NOT FOUND parseRequest: ${request},
baseUrl: ${request.baseUrl} <br />
scriptUrl: ${request.scriptUrl} <br />
Expand All @@ -63,9 +66,6 @@ UrlManager = extends Component {
hostInfo: ${request.hostInfo} <br />
END; terminate() */
if("${request.baseUrl}/" != request.url){
// request.redirect(request.baseUrl)
}
throw NotFoundHttpException(_T('Page not found.'))
}
},
Expand Down

0 comments on commit e2b8442

Please sign in to comment.