FriendsOfSymfony/FOSJsRoutingBundle — pull request #60 by AHWEBDEV (2012-11-28 18:52:06+00:00)
Title: Add Absolute Url Feature

The function Routing.generate() can take a third boolean argument to generate an Absolute Url like the router service does.
The function will also check if the requested url has a requirement on the "_scheme"
If the scheme is not the same as the current scheme, then the function will return absolute path to fit route params.

The Javascript router file was also compiled to include those changes.

Simply use it like that `Routing.generate('route_id', /* your params */, true)`