routing
routing copied to clipboard
Nette Routing: two-ways URL conversion
- bug fix: https://github.com/nette/application/issues/297 and https://github.com/nette/application/issues/164 - BC break: maybe ---- It's first tryout. Need further testing.
Very often I need to define a group of routes that have a common prefix in a single RouteList. For example locale: ```php $router = new RouteList('Front'); $router->addRoute('https://%host%///', ...); ```...
Hi, in ErrorPresenter I create catchall route looking like this `[]` to get `{link this}` or `{link 404!}` working in the error template. But I need to prepend it to...
Version: dev-master ### Bug Description Different behavior of matching `path` and `path/` ### Steps To Reproduce ```php $list = new RouteList(); $list->withPath('admin') ->addRoute('[]'); $list->addRoute('[]'); var_dump($list->match(new Request(new UrlScript('http://localhost/admin/')))); // first route...
If a variable containing commas is used in the URL, these commas are changed to the encoded version. For example this: ```php $router->withModule('Front')->addRoute('/tags[:]', [ 'presenter' => 'Tag', 'action' => 'default',...
Version: 3.1.0 ### Steps To Reproduce Latte ```latte {block content} {$type} {link this type: null} {link this type: articles} {link this type: random} {/block} ``` Router ```php public static function...
The IPv6 becomes more and more popular and should be supported in all corresponding parts of Nette Framework. Suggested php function filter_var($ip, FILTER_VALIDATE_IP) validates perfectly both IPv4 and IPv6 -...
There is a bug in implementation of system variable $basePath in Nette + Latte. The variable is created in UrlScript::getBasePath() with ending slash. But in Latte/MicroPresenter is used WITHOUT this...