check for same url segment