diff --git a/openlibrary/templates/search/sort_options.html b/openlibrary/templates/search/sort_options.html index 51313de0f5b..10e0f0017e5 100644 --- a/openlibrary/templates/search/sort_options.html +++ b/openlibrary/templates/search/sort_options.html @@ -64,8 +64,9 @@ $if not loop.last: | $if selected_sort and selected_sort.startswith('random') and not is_bot(): - ($_('Shuffle')) + onclick="window.location = $dumps(changequery(page=None, sort='random_%s' % today().timestamp()));" + >$_('Shuffle'))