# How to enable pre-fetching in links within a frame?

**URL:** <https://discuss.hotwired.dev/t/how-to-enable-pre-fetching-in-links-within-a-frame/5874>\
**Category:** General\
**Created:** [June 30, 2024, 9:42pm UTC](https://discuss.hotwired.dev/t/how-to-enable-pre-fetching-in-links-within-a-frame/5874 "2024-06-30T21:42:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kuba-orlik](https://yyz1.discourse-cdn.com/flex027/user_avatar/discuss.hotwired.dev/kuba-orlik/32/3751_2.png) [@kuba-orlik](https://discuss.hotwired.dev/u/kuba-orlik)\
**Post date:** [June 30, 2024, 9:42pm UTC](https://discuss.hotwired.dev/t/how-to-enable-pre-fetching-in-links-within-a-frame/5874/1 "2024-06-30T21:42:56Z")

</div>

I have a frame that contains links that navigate to an entirely new view. However, it seems that pre-fetching doesn’t work on them because they are within a frame. I’m using the following attributes on the links:

```auto
<turbo-frame id="someid">
    <a 
        target="_top"
        data-turbo-frame="_top"
        data-turbo-action="advance"
        href="/"
    >
        my link
    </a>
</turbo-frame>

```

but still turbo doesn’t enable pre-fetching when hovering over the links.

Is there a way I can override this behavior and make those links pre-fetch on hover?

---

<div class="post-metadata">

**Author:** ![kuba-orlik](https://yyz1.discourse-cdn.com/flex027/user_avatar/discuss.hotwired.dev/kuba-orlik/32/3751_2.png) [@kuba-orlik](https://discuss.hotwired.dev/u/kuba-orlik)\
**Post date:** [June 30, 2024, 9:49pm UTC](https://discuss.hotwired.dev/t/how-to-enable-pre-fetching-in-links-within-a-frame/5874/2 "2024-06-30T21:49:31Z")

</div>

Ok, I’ve found the issue: removing `target="_top"` solved it
