walinejs / waline

💬 A Simple, Safe Comment System
https://waline.js.org/en/
GNU General Public License v2.0
2.19k stars 379 forks source link

[BUG]后台评论链接错误 Backstage Comments URLs Error #306

Closed YiHui-Liu closed 3 years ago

YiHui-Liu commented 3 years ago

问题描述 | Describe the bug 填写评论信息时,如果网址未指定协议(如填写foolishfox.cn),那么后台评论管理的链接就会出错 When filling in the comment information, if the URL does not specify the protocol (such as filled with foolishfox.cn), then the URL of the back-end comment manage page will be wrong: image

部署方式 | Deploy Type

备注 | Remarks 服务端链接为二级目录:/waline/ui URL of server is the secondary directory: /waline/ui

Mister-Hope commented 3 years ago

Please provide more details or check what you are expressing.

YiHui-Liu commented 3 years ago

每一条的评论的昵称是一个指向填写的URL的超链接,如果该URL没有指定协议,那么在后台的链接地址将会出错,但是前端展示没有问题,如下图所示: 已经测试,无论服务端URL是否为二级目录,都会出现该问题


The nickname of each comment is a hyperlink which the destination address is the URL. If the URL does not specify the protocol, then the link address in the background will be wrong, and the front-end display will be no problem, as shown in the following picture:

It has been tested, regardless of whether the server URL is a secondary directory, the problem may occur