Apply site config theme before doing redirect to avoid attempts to write to invalid directory