{"action":"opened","issue":{"url":"https://api.github.com/repos/skipperbent/simple-php-router/issues/240","repository_url":"https://api.github.com/repos/skipperbent/simple-php-router","labels_url":"https://api.github.com/repos/skipperbent/simple-php-router/issues/240/labels{/name}","comments_url":"https://api.github.com/repos/skipperbent/simple-php-router/issues/240/comments","events_url":"https://api.github.com/repos/skipperbent/simple-php-router/issues/240/events","html_url":"https://github.com/skipperbent/simple-php-router/issues/240","id":240247212,"number":240,"title":"Route not found error shows original route instead rewrited route","user":{"login":"jatubio","id":11651768,"avatar_url":"https://avatars0.githubusercontent.com/u/11651768?v=3","gravatar_id":"","url":"https://api.github.com/users/jatubio","html_url":"https://github.com/jatubio","followers_url":"https://api.github.com/users/jatubio/followers","following_url":"https://api.github.com/users/jatubio/following{/other_user}","gists_url":"https://api.github.com/users/jatubio/gists{/gist_id}","starred_url":"https://api.github.com/users/jatubio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jatubio/subscriptions","organizations_url":"https://api.github.com/users/jatubio/orgs","repos_url":"https://api.github.com/users/jatubio/repos","events_url":"https://api.github.com/users/jatubio/events{/privacy}","received_events_url":"https://api.github.com/users/jatubio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-03T19:11:20Z","updated_at":"2017-07-03T19:11:20Z","closed_at":null,"body":"If i use one `RouterBootManager` to rewrite routes using `request->setRewriteUrl()` to rewrite one url and the new url have a route not defined, the error message tell me about not found original route.\r\n\r\nSample:\r\n\r\nI will rewrite `/page/login` to `/ask/login`, but i don't have defined route for `/ask/login`.\r\n\r\nI get this error:\r\n\r\n```\r\nFatal error: Uncaught Pecee\\SimpleRouter\\Exceptions\\NotFoundHttpException: Route not found: /page/login in ..\\pecee\\simple-router\\src\\Pecee\\SimpleRouter\\Router.php on line 286\r\n```\r\n\r\nI will be better:\r\n\r\n```\r\nFatal error: Uncaught Pecee\\SimpleRouter\\Exceptions\\NotFoundHttpException: Route not found: /ask/login (redirected from /page/login) in ..\\pecee\\simple-router\\src\\Pecee\\SimpleRouter\\Router.php on line 286\r\n\r\n```\r\nOr:\r\n\r\n```\r\nFatal error: Uncaught Pecee\\SimpleRouter\\Exceptions\\NotFoundHttpException: Route not found: /ask/login in ..\\pecee\\simple-router\\src\\Pecee\\SimpleRouter\\Router.php on line 286\r\n\r\n```\r\n\r\n\r\n"}}
{"actor":{"display_login":"jatubio"}}