# Internal links in a post pointing incorrectly

**URL:** <https://discourse.gohugo.io/t/internal-links-in-a-post-pointing-incorrectly/43803>\
**Category:** support\
**Created:** [April 8, 2023, 1:22pm UTC](https://discourse.gohugo.io/t/internal-links-in-a-post-pointing-incorrectly/43803 "2023-04-08T13:22:05Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![mahadevan](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/mahadevan/32/19173_2.png) [@mahadevan](https://discourse.gohugo.io/u/mahadevan)\
**Post date:** [April 8, 2023, 5:13pm UTC](https://discourse.gohugo.io/t/internal-links-in-a-post-pointing-incorrectly/43803/3 "2023-04-08T17:13:04Z")

</div>

This solved the problem.

> [@Relative Markdown Links - Markdown Render Hooks](https://discourse.gohugo.io/t/relative-markdown-links-markdown-render-hooks/22674):
>
> The minimal example for relative markdown links: [My Article](../my-article/index.md) Template: /layouts/\_default/\_markup/render-link.html \<a href="{{ (.Page.GetPage .Destination).RelPermalink | safeURL }}"\>{{ .Text | safeHTML }}\</a\> For more complex example in the test project, follow: [https://github.com/bep/portable-hugo-links](https://github.com/bep/portable-hugo-links)

---

_[View the full topic](https://discourse.gohugo.io/t/internal-links-in-a-post-pointing-incorrectly/43803)._
