How to generate links to different application?
Notice: This thread is very old.
- JuniorJR
- Member | 181
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 | 2595
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.