# Using academic theme, how to create link to a widget of main page?

**URL:** <https://discourse.gohugo.io/t/using-academic-theme-how-to-create-link-to-a-widget-of-main-page/10849>\
**Category:** support\
**Created:** [March 4, 2018, 3:34pm UTC](https://discourse.gohugo.io/t/using-academic-theme-how-to-create-link-to-a-widget-of-main-page/10849 "2018-03-04T15:34:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![M-M-M-M](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@M-M-M-M](https://discourse.gohugo.io/u/M-M-M-M)\
**Post date:** [March 4, 2018, 3:34pm UTC](https://discourse.gohugo.io/t/using-academic-theme-how-to-create-link-to-a-widget-of-main-page/10849/1 "2018-03-04T15:34:03Z")

</div>

I am using academic theme with some custom page and I would like to include some links to some widgets of main site page.

However I am not able to create links without specifying the full URL:

This is not working:

```auto
[test]({{< relref "/#teaching" >}})

[test]({{< relref "teaching.md" >}})

```

This is working:

```auto
[test2]( http://localhost:1313/#teaching )

```

How can I create such links without having to enter a full URL?

---

<div class="post-metadata">

**Author:** ![alexandros](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@alexandros](https://discourse.gohugo.io/u/alexandros)\
**Post date:** [February 28, 2020, 8:12am UTC](https://discourse.gohugo.io/t/using-academic-theme-how-to-create-link-to-a-widget-of-main-page/10849/2 "2020-02-28T08:12:31Z")

</div>

Archived on February 28, 2020, 8:12am UTC


