New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
?_sort=rowid with _next= returns error #1470
Comments
Here's the exception:
Debugger shows that
So the bug is in this code: datasette/datasette/views/table.py Lines 604 to 617 in adb5b70
|
On further investigation this isn't related to
|
I'll open a separate issue for removing |
For example:
hello
will take you to https://cryptics.eigenfoo.xyz/clues/clues?_search=hello&_sort=rowid&_next=100500 Error: list index out of range
is raised.This is because the search URL includes the
&_next=100
UTM parameter, carried over from where the FTS search was run. However, there isn't a second page in the search results, so alist index out of range
error is raised. You can confirm that removing this UTM parameter from the URL returns the appropriate search results.The FTS search request should strip any
_next
UTM parameter.The text was updated successfully, but these errors were encountered: