# SSO & Registration Popup Problems?

**URL:** <https://meta.discourse.org/t/sso-registration-popup-problems/69481>\
**Category:** Product Support\
**Created:** [6 Setembro , 2017 15:28 UTC](https://meta.discourse.org/t/sso-registration-popup-problems/69481 "2017-09-06T15:28:55Z")\
**Posts on this page:** 1\
**Showing post:** 25

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [25 Setembro , 2017 14:52 UTC](https://meta.discourse.org/t/sso-registration-popup-problems/69481/25 "2017-09-25T14:52:26Z")

</div>

Hi Micah,

I took a quick look at what you’re doing and I think I have an idea of the problem.

You are using `ApplicationRoute.on('activate')` to trigger your logic. This will start when you enter the route. Sometimes the AJAX request happens quite fast and schedules the `authenticationComplete` to appear before all nested routes have been entered. Then, when a nested route finishes transitioning the `page-tracking` module is triggering a cleanDOM which removes the modal.

I can think of a few things to try:

1. Instead of watching `ApplicationRoute.on('activate')` you could instead trigger it from the `DiscoveryCategoriesRoute` - that is a nested route in your homepage that should fire after the `ApplicationRoute` does

2. You might have more luck with the [didTransition](https://www.emberjs.com/api/ember/2.14/classes/Ember.Route/events/didTransition?anchor=didTransition) action than `on('activate')`.

3. Finally, if neither of those work, you could try adding your logic to the `didInsertElement` of the `discovery-categories` component. That will only fire after that component has been rendered, which should be well after any transition has happened.

---

_[View the full topic](https://meta.discourse.org/t/sso-registration-popup-problems/69481)._
