improve resiliency of application_helper#link_to
force localhost tenant in dev mode