Skip to content

Fix navigation with next/previous buttons for questions in a list

Grigor Malo requested to merge list-question-navigation into master

Clicking "next question" or "previous question" after opening a question from inside a list should navigate to the next/previous question in the list, according to the order specified

Also, there was a bug with navigation from discover page too (an old question version matching the initial filter parameters would get mistakenly fetched as a questions), so the whole approach to navigation was changed. So now:

  • all related questions ids are fetched in the initial query (either all published questions, filtered published questions, or questions belonging to a list)
  • the client knows in advance all possible ids that will be navigated, so it calculates previous/next question without asking the server again
Edited by Grigor Malo

Merge request reports