Issue #2102777 by damiankloip, dawehner: Allow theme_links() to use routes as well as href.