Reload page body when clicking a link in a custom header
Canapin wants to reload the forum body when clicking on a custom header link, similar to clicking on the logo in the regular Discourse header bar. Johani clarifies that the goal is to take the user to the homepage within the app.
Johani suggests setting the href of the link to /, but Canapin reports that this doesn’t work. Johani provides a script to force the link to load within the app. However, Canapin reports that the script doesn’t work.
Johani shares a working example on theme creator, and Canapin eventually gets the script to work, thanking Johani for their help. The solution involves adding a script to the link with the class home-link to force it to load within the app.
Do you mean reload as in cause the whole page to reload - reload the entire app - or do you just want the link to take you to the homepage within the app?