Use request.path instead of bool variables