Empty table (No wallets shown) when page parameter is higher then current search last page value & various related console errors
The links of search is sharable (can be copied and send to others)
for example visiting this link:
https://walletscrutiny.com/?platform=iphone&page=2&query-string=android
Will result in empty page (no wallets are shown):
This happens cause the page
parameter value is higher then the max page number of current search, which can happen in several cases:
- URL is modified manually, to change
android
toiphone
in the platform (how the issue was discovered) - When links to search results are shared on the internet, visiting them afterwards will use the old
page
value which might be too high for the current search due to:
- algorithm change, search was improved to return more accurate results (which might mean less results overall)
- Website had reviews updates, some of the wallets change names, reviews were moved to another available category or new category (happens in HWW in the past, the new bearer category)
in that situation the additional console errors were discovered:
- Error shown in console after clicking on "1" in above image:
Uncaught TypeError: document.querySelector(...) is null generateAndAppendPagination https://walletscrutiny.com/assets/js/landingPageWalletGrid.js:1 landingPageWalletGrid.js:1:4090
- Error shown when changing page layout (browser console docking settings, maybe scrolling related?) as was done to take above picture, this is a guess regarding the cause.
Uncaught InternalError: too much recursion at https://walletscrutiny.com/assets/js/main.min.js:1 css https://walletscrutiny.com/assets/js/main.min.js:1 H https://walletscrutiny.com/assets/js/main.min.js:1 O https://walletscrutiny.com/assets/js/main.min.js:1 get https://walletscrutiny.com/assets/js/main.min.js:1 css https://walletscrutiny.com/assets/js/main.min.js:1 ae.fn[i]/< https://walletscrutiny.com/assets/js/main.min.js:1 _e https://walletscrutiny.com/assets/js/main.min.js:1 i https://walletscrutiny.com/assets/js/main.min.js:1 updateNav https://walletscrutiny.com/assets/js/main.min.js:1 updateNav https://walletscrutiny.com/assets/js/main.min.js:1 updateNav https://walletscrutiny.com/assets/js/main.min.js:1 main.min.js:1:14848