Skip to content

Search feature in assistant view unusable: Assistant view resets selected module upon search

The search feature in the assistant view is unusable. This is because the selected module resets upon searching.

To reproduce:

  1. Enter assistant view on course edition main page
  2. Click a module other than the one selected by default
  3. Enter a search term which should result in a hit
  4. Click search / press enter
  5. Observe that the first module is selected again (not finding any results)
  6. Clicking on another module clears the search

This happens because submitting the search does not pass the module id.

This is a form issue, entering a url with both the module parameter and a q parameter will yield the results as expected.