cswertz / lerndorf

WebDidactic@lerndorf
GNU General Public License v3.0
3 stars 1 forks source link

Navigation for guest is not working #215

Open cswertz opened 2 years ago

cswertz commented 2 years ago

Showing Title of Learning unit (or anything else) for guest user is not working. Steps to reproduce:

Login as admin
Choose "4 Nachrichten" - Button (yes - that's another bug, should not be there)
click "add ned learnning unit"
enter some title
click on title in list
click "add new knowledge unit"
choose some metadatam keep "visible public" active
click "add knowledge unit"
click "mark reviewed" and "mark lectored"
click "add text"
enter some text
click "save"

Know there is a knowledge unit that should be shown in guest mode. But if you log out the navigation menu is empty. Neither the title of the learning unit nor the metadata for knowledge type or media type are shown. Might have to do with languages - if user is not logged in there is no language set.

leganz commented 1 year ago

https://github.com/cswertz/lerndorf/pull/250

cswertz commented 1 year ago

Actually the problem is a UI problem. If you just call http://localhost:3001 you are redirected to the login page. That should not happen. Instead, the "default" start page (that is: the learning unit with the ID 1 as set by the seeders) should be shown. Since this is not the case, I can not test it the content that is set to be shown to guests is actually shown to guests. Well - that's not part of the current work packages. Have to keep this for later.