# Shiny Auth0 /reports link callback

**URL:** <https://community.auth0.com/t/shiny-auth0-reports-link-callback/8931>\
**Category:** Get Help\
**Tags:** callback, auth0\
**Created:** [December 9, 2017, 6:59pm UTC](https://community.auth0.com/t/shiny-auth0-reports-link-callback/8931 "2017-12-09T18:59:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fouad.oualid](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/fouad.oualid/32/3796_2.png) [@fouad.oualid](https://community.auth0.com/u/fouad.oualid)\
**Post date:** [December 9, 2017, 6:59pm UTC](https://community.auth0.com/t/shiny-auth0-reports-link-callback/8931/1 "2017-12-09T18:59:47Z")

</div>

Hi there,

Shiny Auth0 always callback to ([example.com/reports](http://example.com/reports)) Is there a way to make it callback to [example.com](http://example.com) only? we tried with the index.js on node js but without success.

---

<div class="post-metadata">

**Author:** ![pablo.seibelt](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/pablo.seibelt/32/7712_2.png) [@pablo.seibelt](https://community.auth0.com/u/pablo.seibelt)\
**Post date:** [December 11, 2017, 11:23pm UTC](https://community.auth0.com/t/shiny-auth0-reports-link-callback/8931/2 "2017-12-11T23:23:39Z")

</div>

You need to somehow mix the proxying we have on routes/reports.js and the routing on routes/index.js, i haven’t done such a thing on Node so i’d be lying if i proposed a solution, but i know it’s not impossible.

This may be useful for you to understand, when a user goes into /reports, the directive on app.js that says:

```
app.use('/reports/', reports);

```

Kicks off the code on routes/reports.js, if any other url comes, it’ll be handled by

```
app.use('/', routes);

```

Which kicks off the code in routes/index.js. So i expect a solution to your issue would be to delete the /reports/ line from app.js, and make sure routes/index.js also proxies reports, but it may prove difficult to mix both codes, i’m not sure. Also in case you don’t have control over it, take into account, like this you can’t have reports named /login or /callback, as those will need to be handled by the proxy for authentication.

Have a nice day!

---

<div class="post-metadata">

**Author:** ![fouad.oualid](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/fouad.oualid/32/3796_2.png) [@fouad.oualid](https://community.auth0.com/u/fouad.oualid)\
**Post date:** [December 11, 2017, 11:39pm UTC](https://community.auth0.com/t/shiny-auth0-reports-link-callback/8931/3 "2017-12-11T23:39:18Z")

</div>

Thanks for taking the time Pablo, your input is appreciated as always!  
I think we already tried these without success. It must be more complicated than that.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:57am UTC](https://community.auth0.com/t/shiny-auth0-reports-link-callback/8931/4 "2018-03-02T05:57:43Z")

</div>


