Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Latestposts URL not localised

未关闭
#148 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
javascript

调研方向

从最新的 latestPosts post.html 模板开始,检查 [post:parenturl] 如何构建精选文章链接。使用 DNN 9.2.2、Blog 6.4.1,以法语为默认语言、德语为附加语言,并包括 shared 和 detached 模式,重现该问题。当精选文章链接使用本地化的父博客 URL,而不是默认语言别名时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

bug

The latestPosts template post.html does not work properly with localization. Although the title of the featured post is correct ( [post:localizedtitle]) the link is not and it points to its matching post on the default language. I believe [post:parenturl] fails to use the localized parent blog.
Is there a fix or a better token to be used?

I have observed this behavior since 2015 at least, all versions since then. Now I am on DNN 9.2.2 and blog module 6.4.1. I am using the latestPosts[system].
Using the native localisation with default French and additional German.
The latestPosts module is setup as "shared", but in detached mode it shows the same behaviour. As friendly URL I am using Sacha's openurlprovider 1.4.3 with its blog extension 1.0. Is there a better way of doing that? Even without the blog extension the ~home directory is the wrong alias (/fr instead of /de in my case).
I can provide ftp and host access to the website if needed.
Let me know if you need anything else, please.
Best,

主要语言
JavaScript
星标
39
派生
41
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

DNNCommunity/DNN.Blog 的其他 Issue

查看 DNNCommunity/DNN.Blog 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。