I'm not sure that I understand your issue. URL > Path (and other components) is based off the current URL (the window.location object).
I will make a sidenote that for DTM, Path actually means location.pathname+location.search. For this reason, I have a data element named location_pathname that returns location.pathname. In any case, maybe there is some kind of conflict with your value vs. this?
My next guess is maybe you have timing issues because of some pushState/hashchange on your site.
But.. all of this is just throwing darts in the dark since you have not provided full details.