could not fathom from your code what pathname are you handling differently?