Create a lesson with a link item that points to a player url with only the first segment (rootId) such as: https://player.graasp.org/12345
When you click the link the tree navigation on the left crashes and displays the hello text which is not good.
How to fix:
I added a button that is shown when the navigation crashes (via the error boundary), it reloads the full page allowing the navigation tree to be displayed.
Better solution would be to detect urls that point to internal content and adapt how we navigate to them.
Steps
test: add failing test on navigation to an internal link that points to the rootId only
ref #773
How to reproduce:
https://player.graasp.org/12345
hello
text which is not good.How to fix:
I added a button that is shown when the navigation crashes (via the error boundary), it reloads the full page allowing the navigation tree to be displayed.
Better solution would be to detect urls that point to internal content and adapt how we navigate to them.
Steps