Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

相同拼音的标题自动生成的别名会重复导致访问出现问题 #7087

Open
4 tasks done
jhqwqmc opened this issue Nov 28, 2024 · 1 comment
Open
4 tasks done
Assignees
Labels
area/ui Issues or PRs related to the Halo UI
Milestone

Comments

@jhqwqmc
Copy link

jhqwqmc commented Nov 28, 2024

前置条件

  • 已经在 issues 列表中搜索了相关问题。
  • 这是 Halo 项目本身存在的问题,如果是非项目本身的问题(如:安装部署问题),建议在 Discussions 提交。
  • 已经尝试过停用所有的插件,排除是插件导致的问题。
  • 如果是插件和主题的问题,请在对应的插件和主题仓库提交。

系统信息

使用的哪种方式运行?

Docker Compose

发生了什么?

相同拼音的标题自动生成的别名会重复导致访问出现问题,只会访问最先发布的文章,是否可以改进一下,比如已经有一个别名叫做ni-hao的文章再生成一个的时候就自动生成为ni-hao-1

复现步骤

No response

相关日志输出

附加信息

No response

@ruibaby
Copy link
Member

ruibaby commented Nov 28, 2024

相同问题:#3172

这个问题目前后端无法添加校验的话,建议在创建的时候由前端查询是否存在相同的 slug 并做相应的处理,目前各个模型的 slug 应该都是添加了索引的。

cc @halo-dev/sig-halo

/assign
/milestone 2.20.x
/area ui

@f2c-ci-robot f2c-ci-robot bot added the area/ui Issues or PRs related to the Halo UI label Nov 28, 2024
@f2c-ci-robot f2c-ci-robot bot added this to the 2.20.x milestone Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui Issues or PRs related to the Halo UI
Projects
None yet
Development

No branches or pull requests

2 participants