ignore last slash when comparing urls