Better algorithm to replace pushState/replaceState uri, and detect if is relative or full path
Better algorithm to replace pushState/replaceState uri, and detect if is relative or full path

gartz/pushStateTree,gartz/pushStateTree