BUGFIX: path set to empty string if raw_path true, because url had been deleted from params at this stage