fixed url on history to point to relative path instead of root