Calling a route programatically

Problem

You need to transition to a different route programatically, as if you did {{action gotoUsers}}.

Solution

Get the router instance from the application and call send on it with the required transition name

App.get("router").send("gotoUsers");

Or with a context

App.get("router").send("showUser", App.currentUser);