# How to bypass multi-page callback for certain links?

**URL:** <https://community.plotly.com/t/how-to-bypass-multi-page-callback-for-certain-links/54899>\
**Category:** Dash Python\
**Created:** [July 20, 2021, 11:22pm UTC](https://community.plotly.com/t/how-to-bypass-multi-page-callback-for-certain-links/54899 "2021-07-20T23:22:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jblang](https://avatars.discourse-cdn.com/v4/letter/j/51bf81/32.png) [@jblang](https://community.plotly.com/u/jblang)\
**Post date:** [July 20, 2021, 11:22pm UTC](https://community.plotly.com/t/how-to-bypass-multi-page-callback-for-certain-links/54899/1 "2021-07-20T23:22:17Z")

</div>

I’m using dcc.Location to make a multi-page dash app. This works fine, except that I have a link for which I want to bypass the callback on and have the browser go to a custom Flask route that I have defined on my server. With a html.A element, the browser passes it through /\_dash-update-component instead of just going to the URL. Is there any way to force it?

---

<div class="post-metadata">

**Author:** ![jblang](https://avatars.discourse-cdn.com/v4/letter/j/51bf81/32.png) [@jblang](https://community.plotly.com/u/jblang)\
**Post date:** [July 21, 2021, 1:22am UTC](https://community.plotly.com/t/how-to-bypass-multi-page-callback-for-certain-links/54899/2 "2021-07-21T01:22:11Z")

</div>

I figured out on my own that setting refresh=True in dcc.Link will cause the browser to go to the link directly instead of trying to pass it through your callback. In the case of dbc.NavLink, external\_link=True will do the same thing. The docs for dcc.Link could be a little clearer about what the refresh setting is used for.
