try href instead of pathname