theme-next/hexo-leancloud-counter-security

Generate wrong url for each post for leancloud counter when running site in a subdirectory

wuliuxiansheng opened this issue · 9 comments

The url for a post should be /blog/post after deploy if running site in a subdirectory that is domain/blog/ but the url generated is /post.

@wuliuxiansheng try checkout dev branch and test if it works fine. I don't have env to test for now.

@LEAFERx It still generates wrong urls.

Could you give me examples for this version? And what's your roots variable in site _config.yml?

It generate the same urls with the master branch and I set the root to be /~chaoliu/ in my _config.yml file.

what about now? I've tested it and it works fine.

It is not working. Now the url for all post become the root.

sry it's my bad. I'm not pushing the right code. Now it should work. Pls try?

Great! It is working now. Thanks.

Okay, I'll merge it into master.