rewrite custom urls feature to spec