HugoBlox / hugo-blox-builder

🚨 GROW YOUR AUDIENCE WITH HUGOBLOX! 🚀 HugoBlox is an easy, fast no-code website builder for researchers, entrepreneurs, data scientists, and developers. Build stunning sites in minutes. 适合研究人员、企业家、数据科学家和开发者的简单快速无代码网站构建器。用拖放功能、可定制模板和内置SEO工具快速创建精美网站!
https://hugoblox.com/templates/
MIT License
8.2k stars 2.9k forks source link

Pages widget: custom URL feature for "See All" breaks automated See All links #1809

Closed rodrigoalcarazdelaosa closed 4 years ago

rodrigoalcarazdelaosa commented 4 years ago

Describe the bug

After this commit the button See all redirects to the root page, instead of the archive page, when the URL path of posts has been changed.

To Reproduce

Steps to reproduce the behavior:

  1. Change the URL path of posts from post/ to blog/ according to this.
  2. The button MORE POSTS will redirect to the homepage instead of the blog archive page.

Expected behavior

To redirect to the corresponding archive page.

Technical details:

rodrigoalcarazdelaosa commented 4 years ago

I also have two different languages, in case that is affecting, as per this line:

{{ $archive_link := ($st.Params.content.archive.link | relLangURL) | default $archive_page.RelPermalink }}
gcushen commented 4 years ago

Thanks for reporting this. Just committed 05bfd7c and it should be fixed now.