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

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:

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

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

This is working:

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

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