Is it possible to remove trailing slash

romal
Member | 16
+
0
-

I have one route in RouterFactory.php:
$router->addRoute(‘<presenter>/<action>[/<id>]’, ‘Frontpage:default’);

Links generator <a href=“{link Posts:}”>Posts</a>
gives me a link “/posts/” which has trailing slash.

Is it possible to remove trailing slash?
I want links to be like “/posts” for default action.

David Grudl
Nette Core | 7350
+
+2
-

<presenter>[/<action>[/<id>]]

Btw it is in docs

romal
Member | 16
+
0
-

Great! It works like a charm! Thank you David!