Fix middleware url regexp