0👍
✅
I knew as soon as I posted, I would find the answer.
I was trying to use code for URI.fragmentURI.js
when in fact I wanted URI.fragmentQuery.js
.
Swapping to the correct plugin for the library has solved this problem.
Source:stackexchange.com