URL parameter parsing

susanmacnab Community Member, Lectora® Accessibility Group (LAUG) Member, eLearning Brothers® Partner Posts: 16 ♪ Opening Act ♪
My question has been asked a couple of times on this forum but I don't see any resolutions.

I have a header script at the top of my assignable unit to read the URL parameters upon launch of my course. The parameters are set in the LMS.

When I launch the course from my LMS, I see that the parameters are appended to a001index.html but my script runs on page2.html (which is really "Page 1" in the screen capture below - LOL!).

Is there a setting that I am missing to run the script on a001index? Alternatively - is there a better way to grab a parameter?

Thanks in advance!