check path instead of full_path when comparing url