# Angus' Events Plugin 📅

**URL:** https://meta.discourse.org/t/angus-events-plugin/69776
**Category:** Plugin
**Created:** [September 11, 2017, 2:44am UTC](https://meta.discourse.org/t/angus-events-plugin/69776 "2017-09-11T02:44:59Z")
**Posts on this page:** 1
**Showing post:** 433

<div class="post-metadata">

### Author: ![bletch](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bletch/32/69088_2.png) [@bletch](https://meta.discourse.org/u/bletch)
#### Post date: [April 8, 2019, 8:32am UTC](https://meta.discourse.org/t/angus-events-plugin/69776/433 "2019-04-08T08:32:46Z")

</div>

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.

 ![image](https://global.discourse-cdn.com/meta/original/3X/d/0/d0bff6a774803fd94c79418af9d89d4187957541.png)

> **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](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](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](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](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](https://beta.my.site/assets/ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:8:26946))↵ at n. ([https://beta.my.site/assets/application-027cbafa61f4cc1b5b55a63ba2b79d91c9311e929214519811bf586ae80581c9.js:13:16507](https://beta.my.site/assets/application-027cbafa61f4cc1b5b55a63ba2b79d91c9311e929214519811bf586ae80581c9.js:13:16507))↵ at b ([https://beta.my.site/assets/ember\_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:6:19364](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](https://beta.my.site/assets/ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:9:23249))↵ at [https://beta.my.site/assets/ember\_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:8:22830↵](https://beta.my.site/assets/ember_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:8:22830%E2%86%B5) at e.invoke ([https://beta.my.site/assets/ember\_jquery-5dbd79abddf53926275c73f77dbe61e7351258de8d2e886bf2ce86f144368848.js:16:22294](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.

---

_[View the full topic](https://meta.discourse.org/t/angus-events-plugin/69776)._
