Define routes for your apps independent of your routing. Then generate your URIs with a uri_for helper.
Lucas Dohmen
MIT