# How to properly redirect a route before the model

**URL:** <https://discuss.emberjs.com/t/how-to-properly-redirect-a-route-before-the-model/12458>\
**Category:** Design\
**Created:** [February 20, 2017, 1:05pm UTC](https://discuss.emberjs.com/t/how-to-properly-redirect-a-route-before-the-model/12458 "2017-02-20T13:05:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tsteuwer](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/tsteuwer/32/10887_2.png) [@tsteuwer](https://discuss.emberjs.com/u/tsteuwer)\
**Post date:** [February 20, 2017, 1:05pm UTC](https://discuss.emberjs.com/t/how-to-properly-redirect-a-route-before-the-model/12458/1 "2017-02-20T13:05:26Z")

</div>

I’m slightly confused as to where I should be putting redirects if I need them. For instance, say I have this route:

```
import Ember from 'ember';

export default Ember.Route.extend({
  beforeModel() {
    this.transitionTo('some-thing');
  },
});

```

If I do it before the model, I get this error:

```
ember.debug.js:16905 Error: Property set failed: object in path "model" could not be found or was destroyed.
at setPath (ember.debug.js:21386)
at Object.set (ember.debug.js:21306)
at Class.set (ember.debug.js:33930)
at route.js:45
at Class.forEach (ember.debug.js:32204)
at route.js:38
at tryCatch (ember.debug.js:58165)
at invokeCallback (ember.debug.js:58177)
at publish (ember.debug.js:58148)
at ember.debug.js:37633

```

Is this not the proper way of handling redirects before a model?

---

<div class="post-metadata">

**Author:** ![broerse](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/broerse/32/9497_2.png) [@broerse](https://discuss.emberjs.com/u/broerse)\
**Post date:** [February 20, 2017, 6:38pm UTC](https://discuss.emberjs.com/t/how-to-properly-redirect-a-route-before-the-model/12458/2 "2017-02-20T18:38:25Z")

</div>

Yes it is the proper way. It has to be something else. Perhaps try to redirect to your simplest route?
