# Page Bundle, relative image path in RSS feed wrong

**URL:** <https://discourse.gohugo.io/t/page-bundle-relative-image-path-in-rss-feed-wrong/27050>\
**Category:** support\
**Created:** [July 18, 2020, 9:36am UTC](https://discourse.gohugo.io/t/page-bundle-relative-image-path-in-rss-feed-wrong/27050 "2020-07-18T09:36:17Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![pamubay](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pamubay/32/17838_2.png) [@pamubay](https://discourse.gohugo.io/u/pamubay)\
**Post date:** [July 19, 2020, 5:23pm UTC](https://discourse.gohugo.io/t/page-bundle-relative-image-path-in-rss-feed-wrong/27050/4 "2020-07-19T17:23:01Z")

</div>

You can try this solution:

> [@Absolute URLs in RSS Feeds](https://discourse.gohugo.io/t/absolute-urls-in-rss-feeds/25971/2):
>
> To solve this I ended up using a hyper complex partial to replace all URLs by absolute ones in the .Content variable on feeds: {{ $html := htmlUnescape .Content | safeHTML }} {{ $hrefs := findRE "href=\"([^\"]\*)\"" $html }} {{ range $href := $hrefs}} {{ $absHref := strings.TrimPrefix "href=\"" $href }} {{ $absHref = strings.TrimSuffix "\"" $absHref }} {{ $absHref = printf "href=\"%s\"" ($absHref | absURL) }} {{ $html = replace $html $href $absHref }} {{ end }} {{ $srcs := findRE "sr…

---

_[View the full topic](https://discourse.gohugo.io/t/page-bundle-relative-image-path-in-rss-feed-wrong/27050)._
