adds getCurrentPath method to Router