Add dashboard_link to the error-pages template variables too.