Clicking on site logo from site settings leads to error page

Clicking on the site logo from the admin settings (to return to latest/categories/top) results in an error page. Going back from the error page and trying again succeeds, as does clicking the logo while on the error page.

Errors

Error 1:

application.js:126 TypeError: Cannot read properties of undefined (reading 'split')
    at i.beforeModel (discovery-index.js:12:24)
    at A.runBeforeModelHook (router_js.js:687:1)
    at router_js.js:613:1
    at _ (rsvp.js:434:1)
    at y (rsvp.js:420:1)
    at p.invoke (queue.ts:203:14)
    at p.flush (queue.ts:98:13)
    at h.flush (deferred-action-queues.ts:75:19)
    at $._end (index.ts:616:32)
    at _boundAutorunEnd (index.ts:257:12)

Error 2:

router.js:1064 Error while processing route: discovery.index Cannot read properties of undefined (reading 'split') TypeError: Cannot read properties of undefined (reading 'split')
    at i.beforeModel (https://amcforum.wiki/assets/chunk.42a9fd3e940a5d2958c7.js:2:3037549)
    at A.runBeforeModelHook (https://amcforum.wiki/assets/vendor.9e07dd0436aff8751322647cc975361e-0b8308ceb741824f018ebb7f7d43bfd39b0bc2e6767be3de2e9822c547d27118.js:21:485142)
    at https://amcforum.wiki/assets/vendor.9e07dd0436aff8751322647cc975361e-0b8308ceb741824f018ebb7f7d43bfd39b0bc2e6767be3de2e9822c547d27118.js:21:483943
    at _ (https://amcforum.wiki/assets/vendor.9e07dd0436aff8751322647cc975361e-0b8308ceb741824f018ebb7f7d43bfd39b0bc2e6767be3de2e9822c547d27118.js:21:503424)
    at y (https://amcforum.wiki/assets/vendor.9e07dd0436aff8751322647cc975361e-0b8308ceb741824f018ebb7f7d43bfd39b0bc2e6767be3de2e9822c547d27118.js:21:503316)
    at p.invoke (https://amcforum.wiki/assets/vendor.9e07dd0436aff8751322647cc975361e-0b8308ceb741824f018ebb7f7d43bfd39b0bc2e6767be3de2e9822c547d27118.js:21:515054)
    at p.flush (https://amcforum.wiki/assets/vendor.9e07dd0436aff8751322647cc975361e-0b8308ceb741824f018ebb7f7d43bfd39b0bc2e6767be3de2e9822c547d27118.js:21:513993)
    at h.flush (https://amcforum.wiki/assets/vendor.9e07dd0436aff8751322647cc975361e-0b8308ceb741824f018ebb7f7d43bfd39b0bc2e6767be3de2e9822c547d27118.js:21:516036)
    at $._end (https://amcforum.wiki/assets/vendor.9e07dd0436aff8751322647cc975361e-0b8308ceb741824f018ebb7f7d43bfd39b0bc2e6767be3de2e9822c547d27118.js:21:522048)
    at _boundAutorunEnd (https://amcforum.wiki/assets/vendor.9e07dd0436aff8751322647cc975361e-0b8308ceb741824f018ebb7f7d43bfd39b0bc2e6767be3de2e9822c547d27118.js:21:517693)

Error 3:

discovery-index.js:12 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'split')
    at i.beforeModel (discovery-index.js:12:24)
    at A.runBeforeModelHook (router_js.js:687:1)
    at router_js.js:613:1
    at _ (rsvp.js:434:1)
    at y (rsvp.js:420:1)
    at p.invoke (queue.ts:203:14)
    at p.flush (queue.ts:98:13)
    at h.flush (deferred-action-queues.ts:75:19)
    at $._end (index.ts:616:32)
    at _boundAutorunEnd (index.ts:257:12)
1 Like

Interestingly, this seems to be tied to whether there is a settings query.

Link with bug: /admin/site_settings/category/all_results?filter= (Default)

Link with no bug: /admin/site_settings/category/all_results (After going back from error)

Link with bug: /admin/site_settings/category/all_results?filter=anything (Both before and after error page)

2 Likes

I think this may have been fixed already:

If you update can you still repro?

3 Likes

I’ll update now and check for Repro later. Could have sworn we’ve updated in the last 7 days though.

3 Likes

Got around to checking, it is fixed now.