Hi @angus, Iāve found what looks like a bug. Iām not sure if it stems from the Events Plugin or core.
It comes from my specific use-case and the way Iām using the plugin so Iām not sure how widespread this will be amongst your users.
When you visit the unadorned category URL of a category that is set to display the Agenda you are no longer redirected to the route that you use in the Events Plugin.
For example, if I have a category a-category
and my category settings state that my Default Topic List
is set to Agenda
, and I visit the base URL for that categoryā¦
/c/a-category
I am no longer redirected toā¦
/c/a-category/l/agenda
ā¦as I used to be.
Instead, I am given a blank browser page and the console reports the following error.
Detailed log from Chome console
_ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:3841 Uncaught t {stack: āError: Canāt trigger action ārefreshTitleā becauseā¦61e7351258de8d2e886bf2ce86f144368848.js:16:22294)ā, description: undefined, fileName: undefined, lineNumber: undefined, message: āCanāt trigger action ārefreshTitleā because your aā¦ssed to the model/beforeModel/afterModel
hooks.ā, ā¦}code: undefineddescription: undefinedfileName: undefinedlineNumber: undefinedmessage: "Canāt trigger action ārefreshTitleā because your app hasnāt finished transitioning into its first route. To trigger an action on destination routes during a transition, you can call .send()
on the Transition
object passed to the model/beforeModel/afterModel
hooks."name: "Error"number: undefinedstack: "Error: Canāt trigger action ārefreshTitleā because your app hasnāt finished transitioning into its first route. To trigger an action on destination routes during a transition, you can call .send()
on the Transition
object passed to the model/beforeModel/afterModel
hooks.āµ at new t (https://beta.my.site/assets/ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:11:25040)āµ at n.T (https://beta.my.site/assets/ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:8:18150)āµ at u.triggerEvent (https://beta.my.site/assets/ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:8:22657)āµ at u.e.trigger (https://beta.my.site/assets/ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:18:12495)āµ at n.o.send (https://beta.my.site/assets/ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:8:26946)āµ at n. (https://beta.my.site/assets/application-027cbafa61f4cc1b5b55a63ba2b79d91c9311e929214519811bf586ae80581c9.js:13:16507)āµ at b (https://beta.my.site/assets/ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:6:19364)āµ at n.trigger (https://beta.my.site/assets/ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:9:23249)āµ at https://beta.my.site/assets/ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:8:22830āµ at e.invoke (https://beta.my.site/assets/ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:16:22294)"proto: Error
(anonymous) @ _ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:3841
setTimeout (async)
we.readyException @ _ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:3840
(anonymous) @ _ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:3860
p @ _ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:3548
h @ _ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:3616
setTimeout (async)
(anonymous) @ _ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:3654
c @ _ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:3282
fireWith @ _ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:3412
fire @ _ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:3420
c @ _ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:3282
fireWith @ _ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:3412
h @ _ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:3636
setTimeout (async)
(anonymous) @ _ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:3654
c @ _ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:3282
fireWith @ _ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:3412
fire @ _ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:3420
c @ _ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:3282
fireWith @ _ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:3412
ready @ _ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:3892
h @ _ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:3902
if I try to visit the full URL /c/a-category/l/agenda
then it works as expected.
This is a change in behaviour between beta5 and beta7+7 (I just upgraded my test instance to beta7+7 and now I see this behaviour).
I am using your Custom Wizard Plugin redirect feature to redirect to this category which is why I mention my specific use case. I guess I can just change my code to append /l/agenda/
to get this working, but wanted to know if this is expected behaviour.
Finally, and oddly, if I locate the category in question in the category list from the home page and I hover over it with the mouse, I see that the URL it will take me to is in fact the unadorned version - i.e. /c/a-category
.
However, when I click it, it works as expected and takes me to the /c/a-category/l/agenda
page. If, instead of clicking the URL I copy the URL and paste it in to the browser, it fails as I described above. Some clever internal JavaScript redirection going on I guess?
Iām running 2.3.0 beta7+7 and the latest Events Plugin and am testing in Chrome Version 72.0.3626.96 (Official Build) (64-bit) on Ubuntu.
Iāve tried to repro on your sandbox but couldnāt find a category that is set to display the Agenda as the Default Topic List.