No way to get back to the "home" page when we are logged out

When we are logged out, the logo link in the header points to the legacy /dashboard page. This in turns redirects to the logged in `/catalog/courses` page, instead of coming back to the home page. It forces users to connect, even if they may not have an account.

When clicking on the logo, it should bring us back to the “home” page (which is now the catalog MFE main page), instead of bringing us to a logged in page and forcing us to connect.

Is there a way to achieve this ?

@mboisson my understanding is this behavior can be overriden with plugin slots, have you investigated this option?

Mmm, I have not.

Which plugin slot is expected to control the very top header, or the link to the logo ?

The header slot replaces the banner, not the “link bar” which is above the header slot. At least, in our header slot, we can only replace the banner.

We replace the “desktop_header_slot”:

You can use the “Logo Slot” (org.openedx.frontend.layout.header_logo.v1) for this.

There are some example plugins for that slot here, one of which simply modifies the URL.

Oh, thanks, I will look into that.

Ok, I found how to change it. However, it is quite a bit clunky to me.

We would have to either hardcode everything, or figure out how to access config variables such as ${config.LMS_BASE_URL}inside the plugin slot code. Also, the example to modify the URL shows how to directly edit the env.config.jsx, not how to do it via a tutor plugin. In particular, I don’t know how to add a JSX function through something like

from tutormfe.hooks import PLUGIN_SLOTS

PLUGIN_SLOTS.add_items(
...
)

It seems to me that the “logoDestination” should no longer lead to ${config.LMS_BASE_URL}/dashboardbut rather to ${config.LMS_BASE_URL}

Ok, I figured it out. Leaving the link to the commit for those who may be looking to do the same.

I still think upstream should be modified so that the logo link does not point to `/dashboard`, but rather to `/`