# Small Bug. Admin button doesn't work

**URL:** https://publichappinessmovement.com/t/topic/1780
**Category:** Ruby on Rails, Ember and JS (Discourse and Docuss)
**Tags:** ruby-on-rails, done, webdev
**Created:** [17 January 2020 12:24 UTC](https://publichappinessmovement.com/t/topic/1780 "2020-01-17T12:24:08Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [17 January 2020 12:24 UTC](https://publichappinessmovement.com/t/topic/1780/1 "2020-01-17T12:24:08Z")

</div>

@syl there’s a small bug i’ve been ignoring for a while, i’m not sure i’ve mentioned it or not.

If i click the Admin button to view the admin account, the site fails to load that page. If i enter it in manually in the address bar it loads fine. With Docuss disabled the expected behaviour returns.

Its only a mild inconvenience

---

<div class="post-metadata">

### Author: ![syl](https://publichappinessmovement.com/letter_avatar_proxy/v4/letter/s/91b2a8/32.png) [@syl](https://publichappinessmovement.com/u/syl)
#### Post date: [18 January 2020 21:15 UTC](https://publichappinessmovement.com/t/topic/1780/2 "2020-01-18T21:15:31Z")

</div>

I’ll have a look at this on Monday.

---

<div class="post-metadata">

### Author: ![syl](https://publichappinessmovement.com/letter_avatar_proxy/v4/letter/s/91b2a8/32.png) [@syl](https://publichappinessmovement.com/u/syl)
#### Post date: [20 January 2020 16:47 UTC](https://publichappinessmovement.com/t/topic/1780/3 "2020-01-20T16:47:43Z")

</div>

Please try to replace [this line](https://github.com/focallocal/fl-maps/blob/master/imports/client/ui/app.js#L238) with:

```javascript
<Route exact path={routePaths.admin} render={props => <Admin {...props} {...dcsProps} />} /> 

```

and let me know the result.

---

<div class="post-metadata">

### Author: ![syl](https://publichappinessmovement.com/letter_avatar_proxy/v4/letter/s/91b2a8/32.png) [@syl](https://publichappinessmovement.com/u/syl)
#### Post date: [20 January 2020 16:51 UTC](https://publichappinessmovement.com/t/topic/1780/4 "2020-01-20T16:51:36Z")

</div>

And also, please replace [those 2 lines](https://github.com/focallocal/fl-maps/blob/master/imports/client/ui/app.js#L230) with:

```javascript
<Route exact path={routePaths.root} render={props => <Home {...props} {...dcsProps} />} />
<Route exact path={routePaths.home} render={props => <Home {...props} {...dcsProps} />} />

```

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [20 January 2020 17:26 UTC](https://publichappinessmovement.com/t/topic/1780/5 "2020-01-20T17:26:43Z")

</div>

which file will those be in @syl ?

---

<div class="post-metadata">

### Author: ![syl](https://publichappinessmovement.com/letter_avatar_proxy/v4/letter/s/91b2a8/32.png) [@syl](https://publichappinessmovement.com/u/syl)
#### Post date: [20 January 2020 20:33 UTC](https://publichappinessmovement.com/t/topic/1780/6 "2020-01-20T20:33:59Z")

</div>

The file I’ve linked: `/imports/client/ui/app.js`

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [20 January 2020 21:51 UTC](https://publichappinessmovement.com/t/topic/1780/7 "2020-01-20T21:51:07Z")

</div>

Oh, sorry I missed the links somehow. Will do it early tomorrow

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [21 January 2020 11:56 UTC](https://publichappinessmovement.com/t/topic/1780/8 "2020-01-21T11:56:23Z")

</div>

@syl we’re currently using the master\_withoutdcs branch and not the master branch. @tmcnulty is currently working on switching them to prevent confusions.

i’ve added the code to what seems to be the same lines in the other branch, it would be good if you’d have a look though as obviously i’ve not changed exactly what you thought i was changing.

> <https://github.com/focallocal/fl-maps/blob/master_withoutDCS/imports/client/ui/app.js>

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [21 January 2020 12:12 UTC](https://publichappinessmovement.com/t/topic/1780/9 "2020-01-21T12:12:14Z")

</div>

It has resolved the issue, so everything looks good. i’d be grateful if you could just review the change to make sure another bug hasn’t slipped in.

---

<div class="post-metadata">

### Author: ![syl](https://publichappinessmovement.com/letter_avatar_proxy/v4/letter/s/91b2a8/32.png) [@syl](https://publichappinessmovement.com/u/syl)
#### Post date: [21 January 2020 12:38 UTC](https://publichappinessmovement.com/t/topic/1780/10 "2020-01-21T12:38:50Z")

</div>

@AndyatFocallocal, please revert the change, as I think the website is now broken. I think the fix I proposed cannot work on `master_withoutdcs`, I need more time to have a look at this branch.

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [21 January 2020 14:55 UTC](https://publichappinessmovement.com/t/topic/1780/11 "2020-01-21T14:55:13Z")

</div>

ok, thanks

---

<div class="post-metadata">

### Author: ![syl](https://publichappinessmovement.com/letter_avatar_proxy/v4/letter/s/91b2a8/32.png) [@syl](https://publichappinessmovement.com/u/syl)
#### Post date: [30 January 2020 14:44 UTC](https://publichappinessmovement.com/t/topic/1780/12 "2020-01-30T14:44:11Z")

</div>

The issue doesn’t seem to be in Docuss, as it doesn’t occur on [docuss.org](http://docuss.org). It’s probably in the way fl-maps uses Docuss, but I didn’t find any clue yet. I will give it another try on Saturday.

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [30 January 2020 14:56 UTC](https://publichappinessmovement.com/t/topic/1780/13 "2020-01-30T14:56:26Z")

</div>

your other changes solved it when you were using the master branch as a base. thats a clue 🙂

---

<div class="post-metadata">

### Author: ![PublicHappinessAndy](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/publichappinessandy/32/48_2.png) [@PublicHappinessAndy](https://publichappinessmovement.com/u/PublicHappinessAndy)
#### Post date: [2 February 2020 21:57 UTC](https://publichappinessmovement.com/t/topic/1780/14 "2020-02-02T21:57:36Z")

</div>

@syl i’ve got an update.

If i turn either cloudflare or Docuss off it solves this bug so it seems to be a conflict between the two

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [2 February 2020 22:18 UTC](https://publichappinessmovement.com/t/topic/1780/15 "2020-02-02T22:18:11Z")

</div>

wait… it just occurred again with cloudflare still off.

there’s a hint of whats causing it but its not clear still

---

<div class="post-metadata">

### Author: ![syl](https://publichappinessmovement.com/letter_avatar_proxy/v4/letter/s/91b2a8/32.png) [@syl](https://publichappinessmovement.com/u/syl)
#### Post date: [23 February 2020 17:04 UTC](https://publichappinessmovement.com/t/topic/1780/16 "2020-02-23T17:04:12Z")

</div>

@AndyatFocallocal, I’ve reported a more comprehensive description of the issue [here](https://github.com/focallocal/fl-maps/issues/1039), including a workaround.

Still no clue about the reason why it occurs, though.

I’ve deployed a new version of the plugin that might help tracking the bug (it outputs debug infos in the console). Would you please install it?

Thanks.

---

<div class="post-metadata">

### Author: ![syl](https://publichappinessmovement.com/letter_avatar_proxy/v4/letter/s/91b2a8/32.png) [@syl](https://publichappinessmovement.com/u/syl)
#### Post date: [24 February 2020 10:21 UTC](https://publichappinessmovement.com/t/topic/1780/17 "2020-02-24T10:21:07Z")

</div>

@AndyatFocallocal, I took the liberty to update the Docuss plugin myself.

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [24 February 2020 12:56 UTC](https://publichappinessmovement.com/t/topic/1780/18 "2020-02-24T12:56:53Z")

</div>

Cool. Any new features, or all bug smoothing?

---

<div class="post-metadata">

### Author: ![syl](https://publichappinessmovement.com/letter_avatar_proxy/v4/letter/s/91b2a8/32.png) [@syl](https://publichappinessmovement.com/u/syl)
#### Post date: [24 February 2020 13:03 UTC](https://publichappinessmovement.com/t/topic/1780/19 "2020-02-24T13:03:52Z")

</div>

Just a debug version to track the “Admin Page” issue.

---

<div class="post-metadata">

### Author: ![AndyatFocallocal](https://publichappinessmovement.com/user_avatar/publichappinessmovement.com/andyatfocallocal/32/651_2.png) [@AndyatFocallocal](https://publichappinessmovement.com/u/AndyatFocallocal)
#### Post date: [24 July 2020 19:20 UTC](https://publichappinessmovement.com/t/topic/1780/20 "2020-07-24T19:20:03Z")

</div>

just tagging @tmcnulty here as he said he might be able to have a look at this bug. @syl did you get any ideas on resolving it?

[Next page](https://publichappinessmovement.com/t/topic/1780.md?page=2)
