[DS-1779] Pagination link error in JSPUI discovery search

This has passed a test on my local trunk instance. Will log a separate PR for 4_x branch (I guess that's the procedure?)