# Recargar el cuerpo de la página al hacer clic en un enlace en un encabezado personalizado

**URL:** <https://meta.discourse.org/t/reload-page-body-when-clicking-a-link-in-a-custom-header/90543>\
**Category:** Product Support\
**Created:** [23 Junio, 2018 11:47 UTC](https://meta.discourse.org/t/reload-page-body-when-clicking-a-link-in-a-custom-header/90543 "2018-06-23T11:47:00Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)\
**Post date:** [23 Junio, 2018 12:19 UTC](https://meta.discourse.org/t/reload-page-body-when-clicking-a-link-in-a-custom-header/90543/6 "2018-06-23T12:19:01Z")

</div>

Try something like this:

```plaintext
<a href="/" class="home-link">FORUM</a>

<script type="text/discourse-plugin" version="0.8.20">
$(function() {
  $("a.home-link").click(function() {
    require("discourse/lib/url").default.routeTo(
      $(event.currentTarget).attr("href")
    );
    return false;
  });
});
</script>

```

Where you give your link the classname `home-link` and run a tiny script when it’s clicked to force it to load within the app.

---

_[View the full topic](https://meta.discourse.org/t/reload-page-body-when-clicking-a-link-in-a-custom-header/90543)._
