# disableReplaceState undefined?

**URL:** https://meta.discourse.org/t/disablereplacestate-undefined/36340
**Category:** Bug
**Created:** [December 4, 2015, 10:47pm UTC](https://meta.discourse.org/t/disablereplacestate-undefined/36340 "2015-12-04T22:47:33Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![kcoop](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kcoop/32/108612_2.png) [@kcoop](https://meta.discourse.org/u/kcoop)
#### Post date: [December 4, 2015, 10:47pm UTC](https://meta.discourse.org/t/disablereplacestate-undefined/36340/1 "2015-12-04T22:47:33Z")

</div>

I upgraded Discourse today, and after doing so, some of my users have complained that signing in is giving them a blank page. Investigating further, I’m seeing an exception on the console

> Uncaught TypeError: Cannot set property ‘disableReplaceState’ of undefined

FWIW, it’s happening at application-c138bcb70c1b2d5c6e26cf370fdcf67d.js:58

Any ideas on how to proceed?

---

<div class="post-metadata">

### Author: ![kcoop](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kcoop/32/108612_2.png) [@kcoop](https://meta.discourse.org/u/kcoop)
#### Post date: [December 4, 2015, 10:53pm UTC](https://meta.discourse.org/t/disablereplacestate-undefined/36340/2 "2015-12-04T22:53:55Z")

</div>

The object that is undefined is Discourse.TopicRoute.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [December 4, 2015, 10:56pm UTC](https://meta.discourse.org/t/disablereplacestate-undefined/36340/3 "2015-12-04T22:56:27Z")

</div>

Do you have any plug-ins? Are they updated? Looks like Discourse No Constants stuff.

---

<div class="post-metadata">

### Author: ![kcoop](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kcoop/32/108612_2.png) [@kcoop](https://meta.discourse.org/u/kcoop)
#### Post date: [December 4, 2015, 10:58pm UTC](https://meta.discourse.org/t/disablereplacestate-undefined/36340/4 "2015-12-04T22:58:35Z")

</div>

I do have a few plugins, and they are all up to date. Looking at /admin/upgrade, I am now 1 commit behind the latest discourse, but that’s it.

Can you elaborate on Discourse No Constants?

Edit: I see the discussion about DISCOURSE\_NO\_CONSTANTS now. I’ll look further into that, thanks.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [December 4, 2015, 11:03pm UTC](https://meta.discourse.org/t/disablereplacestate-undefined/36340/5 "2015-12-04T23:03:21Z")

</div>

I think that is my plugin, I will update it.

---

<div class="post-metadata">

### Author: ![kcoop](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kcoop/32/108612_2.png) [@kcoop](https://meta.discourse.org/u/kcoop)
#### Post date: [December 4, 2015, 11:03pm UTC](https://meta.discourse.org/t/disablereplacestate-undefined/36340/6 "2015-12-04T23:03:43Z")

</div>

I was just about to ask… 🙂 Thanks!

---

<div class="post-metadata">

### Author: ![kcoop](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kcoop/32/108612_2.png) [@kcoop](https://meta.discourse.org/u/kcoop)
#### Post date: [December 4, 2015, 11:04pm UTC](https://meta.discourse.org/t/disablereplacestate-undefined/36340/7 "2015-12-04T23:04:04Z")

</div>

You’re talking about browser\_history, right?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [December 5, 2015, 6:37am UTC](https://meta.discourse.org/t/disablereplacestate-undefined/36340/8 "2015-12-05T06:37:39Z")

</div>

Yes, corrected via

[https://github.com/discourse/browser\_history/commit/3349b6a2df2a40b86c7e9c5acf9865e68fb09e6c](https://github.com/discourse/browser_history/commit/3349b6a2df2a40b86c7e9c5acf9865e68fb09e6c)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [December 5, 2015, 6:50am UTC](https://meta.discourse.org/t/disablereplacestate-undefined/36340/9 "2015-12-05T06:50:49Z")

</div>


