Mapping routes to the correct link.