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

无法通过评论管理页面直接跳转 #80

Closed
penndu opened this issue Dec 20, 2020 · 12 comments
Closed

无法通过评论管理页面直接跳转 #80

penndu opened this issue Dec 20, 2020 · 12 comments

Comments

@penndu
Copy link
Contributor

penndu commented Dec 20, 2020

详见截图~

Snipaste_2020-12-20_15-24-55.jpg

@lizheming
Copy link
Collaborator

我试了截图左下角的链接是可以直接打开你的文章地址的,如果是想要反馈有多个 / 的问题的话,可以把 SITE_URL 配置中末尾的 / 去掉试一下,不过这个不影响链接的跳转哈。

@penndu
Copy link
Contributor Author

penndu commented Dec 20, 2020

docker run -d --restart=always -e LEAN_ID=xxx -e LEAN_KEY=xxx -e LEAN_MASTER_KEY=xxx -e LEAN_SERVER=https://a.dusays.com -e SITE_NAME=杜老师说 -e SITE_URL=https://dusays.com -e IPQPS=0 -e SECURE_DOMAINS=dusays.com -e AUTHOR_EMAIL=xxx -e SMTP_SERVICE=QQ -e SMTP_USER=xxx -e SMTP_PASS=xxx -e SC_KEY=xxx -p 8360:8360 lizheming/waline

以上是我运行命令,我试过了,如果多一个/,waline会判断为新页面~

@penndu
Copy link
Contributor Author

penndu commented Dec 20, 2020

错误演示~

Honeycam 2020-12-20 23-56-49.gif

@leirock
Copy link
Contributor

leirock commented Dec 21, 2020

确实不会跳转,只会链接到有评论的文章页,而且链接过去的是这样的格式 https://blog.dlzhang.com//posts/30/,我 SITE_URL 配置中末尾没有/

@lizheming
Copy link
Collaborator

如果是要跳转到评论具体的锚点的话目前是没有处理的,主要的原因是评论是动态加载的,不好利用浏览器的锚点定位的方式去做。

@penndu
Copy link
Contributor Author

penndu commented Dec 21, 2020

如果是要跳转到评论具体的锚点的话目前是没有处理的,主要的原因是评论是动态加载的,不好利用浏览器的锚点定位的方式去做。

不需要跳转到评论具体锚点,只需要跳转到评论页面即可!

@leirock
Copy link
Contributor

leirock commented Dec 21, 2020

如果是要跳转到评论具体的锚点的话目前是没有处理的,主要的原因是评论是动态加载的,不好利用浏览器的锚点定位的方式去做。

不需要跳转到评论具体锚点,只需要跳转到评论页面即可!

是的,能跳转到评论页就行。当然能跳转到锚点的话最好。另外,只要链接带上评论页的锚点,页面加载以下代码就可以跳转到锚点了

<script type="text/javascript">
if(window.location.hash){
    var checkExist = setInterval(function() {
        if ($(window.location.hash).length) {
            $('html, body').animate({scrollTop: $(window.location.hash).offset().top-90}, 1000);
            clearInterval(checkExist);
        }
    }, 100);
}
</script>

@lizheming
Copy link
Collaborator

刚才点开你的动图去看了一下,原来是说提早跳转的地址 //301/ 多带了 / 导致跳转过去之后无法正确获取到评论。这块我处理一下吧,稍等。

@lizheming
Copy link
Collaborator

@waline/admin@0.2.4 发布,删除了多余的 / ,清一下浏览器缓存再试试吧。

@penndu
Copy link
Contributor Author

penndu commented Dec 21, 2020

@waline/admin@0.2.4 发布,删除了多余的 / ,清一下浏览器缓存再试试吧。

docker部署的如何更新?

@lizheming
Copy link
Collaborator

这个是前端的更新,你清下浏览器缓存就可以了。

@penndu
Copy link
Contributor Author

penndu commented Dec 21, 2020

这个是前端的更新,你清下浏览器缓存就可以了。

好的,已经成功跳转!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants