In our multisite-setup, the 'New event' button only works when on the primary site. On other sites we get a 404 error. I figured out that the links behind the button seem to get an unnecessary site handle attached to their end. This results in URIs like admin/events/events/<event-type>/new/de_DE?site=de_DE.
It looks to me that the whole if-statement in the _getEventTypeTriggerHref function in the _event_index.js is unnecessary: https://github.com/verbb/events/blob/craft-4/src/resources/src/js/_event-index.js#L154-L160, maybe because of a recent Craft Update.
Describe the bug
In our multisite-setup, the 'New event' button only works when on the primary site. On other sites we get a 404 error. I figured out that the links behind the button seem to get an unnecessary site handle attached to their end. This results in URIs like
admin/events/events/<event-type>/new/de_DE?site=de_DE
. It looks to me that the whole if-statement in the_getEventTypeTriggerHref
function in the_event_index.js
is unnecessary: https://github.com/verbb/events/blob/craft-4/src/resources/src/js/_event-index.js#L154-L160, maybe because of a recent Craft Update.Steps to reproduce
Craft CMS version
4.9.5
Plugin version
2.0.5
Multi-site?
Yes
Additional context
No response