Fix snippets pagination
What does this MR do?
If fixes the snippets pagination which was AJAXified recently. /cc @smcgivern
Are there points in the code the reviewer needs to double check?
Not sure if we could do better?
Does this MR meet the acceptance criteria?
- 
CHANGELOG entry added 
- Tests
- 
Added for this feature/bug 
- 
All builds are passing 
 
- 
- 
Conform by the merge request performance guides 
- 
Conform by the style guides 
- 
Branch has no merge conflicts with master(if you do - rebase it please)
- 
Squashed related commits together 
What are the relevant issue numbers?
Closes #22500 (closed)