How to generate links to different application?

JuniorJR
Member | 181
+
0
-

What are the options for links generation to different Nette application served on different domain? How should I define routing to enable such behaviour? I've been trying to accomplish this using LinkGenerator. Thx for replies.

Jan Tvrdík
Nette guru | 2547
+
0
-

All you need is an instance of the other application router (each app has a single router, usually RouteList which consists of multiple routes). Then you can use directly the constructUrl method or pass the instance to some LinkGenerator service.