remove form array index in URL

I am successfully creating multiple forms on a single page using the repeat group functionality.

After a form is submitted, AWS updates the URL to add the form index. How can I stop the AWS from adding the form index to the URL? Or, how can I limit it to one index? I don’t need the index functionality and it looks terrible on multiple submits in the URL.

For example:
Fresh page view:
Press submit once:
Press submit twice:,2

Alright, I figured out the answer. Calling the RpPopQueryIndex() function removes the index from the URL.

Where exactly did you put this?

I called RpPopQueryIndex() at the beginning of the function specified by RpFunctionPtr for the form.