[DEV-1320] Add checks for askbot url paths to all middleware.