Ik krijg ook lege categoriepagina’s op desktop- en mobiele browsers (Discourse versie 3.5.0.beta8-dev) wanneer dit onderdeel de volgende instelling heeft:
“setting”: “show_mobile”,
“value”: false
Wanneer ik het terugzet naar de standaardinstelling (true) worden de pagina’s correct weergegeven.
De console toont de volgende foutmelding…
Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating ‘this.site.mobileView’)
…wat gerelateerd is aan…
/discourse/theme-javascripts/theme-3/discourse/components/category-header.gjs)
…en de betreffende regel is regel 3 (const hideMobile) hieronder:
get showHeader() {
const isException = this.args.category && settings.hide_category_exceptions.split("|").includes(String(this.args.category.id));
const hideMobile = !settings.show_mobile && this.site.mobileView;
const subCat = !settings.show_subcategory_header && this.args.category.parentCategory;
const noDesc = !settings.hide_if_no_category_description && !this.args.category.description_text;
const path = window.location.pathname;
return /^\\/c\\//.test(path) && !isException && !noDesc && !subCat && !hideMobile;
}
Enig idee waarom dit gebeurt?