Fix "Show all" link behavior
The "Show all" link was broken by recent refactors from @joshfng. I have fixed it very simply (I believe).
Please note that this fix will be in 8.5.x only (since the whole "Show all" stuff was moved to pagination recently (8.6).
Fixes #14168 (closed)