# Cannot activate modal after scroll

**URL:** https://meta.discourse.org/t/cannot-activate-modal-after-scroll/173243
**Category:** Support
**Created:** [December 14, 2020, 1:19pm UTC](https://meta.discourse.org/t/cannot-activate-modal-after-scroll/173243 "2020-12-14T13:19:24Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![fredmac](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fredmac/32/203245_2.png) [@fredmac](https://meta.discourse.org/u/fredmac)
#### Post date: [December 14, 2020, 1:19pm UTC](https://meta.discourse.org/t/cannot-activate-modal-after-scroll/173243/1 "2020-12-14T13:19:25Z")

</div>

I am using the Discourse Header Links plugin to implement some additional actions in the header. In one of these actions I would like to trigger a modal window to open, and not redirect. I do this by configuring the plugin like so:

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/8/b8bac678a522cb4896e05b89f4b4627a13404c41.png)

This works fine, however if I visit a topic (e.g. [http://localhost:3000/t/welcome-to-the-zone](http://localhost:3000/t/welcome-to-the-zone)) and scroll downwards so the route changes (e.g [http://localhost:3000/t/welcome-to-the-thing-zopne/1/3](http://localhost:3000/t/welcome-to-the-thing-zopne/1/3)), then from that point onward the modal can no longer be opened.

Why is this happening? Help would be appreciated.
