fix bug: when url is same, don't redirect