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

Permalinks of comments on lessons are broken in version 4.2.2.2. #541

Open
voria opened this issue Mar 20, 2023 · 6 comments
Open

Permalinks of comments on lessons are broken in version 4.2.2.2. #541

voria opened this issue Mar 20, 2023 · 6 comments

Comments

@voria
Copy link

voria commented Mar 20, 2023

As of title, comments' permalinks are non-working in version 4.2.2.2 and lead to a 404 error.

For example, suppose to have a course with the following permalink:
/courses/<course_name>
and a lesson assigned to it with enabled comments and the following permalink:
/courses/<course_name>/lessons/<lesson_name>

When an user posts a comment to the lesson, it gets a non-working permalink:
/lessons/<lesson_name>/#comment-<number>
instead of the correct one:
/courses/<course_name>/lessons/<lesson_name>/#comment-<number>

Downgrading the plugin to version 4.2.1.1 fixes the error.

@tungnxt89
Copy link
Collaborator

Hi voria,

Can you provide us link your site? We install LP v4.2.2.2 on site https://testlp.thimpress.com/courses. It runs normally.
What is the list of plugins you install on your site? Can you disable all plugins without LP and recheck? Can you capture the setting of LP for us? Are you saving LP Settings? We'll find the reason to make it run wrong.

Thanks.

@voria
Copy link
Author

voria commented Mar 21, 2023

Hello, I'm still working on my site and it's not online yet.

Anyway, I just tried to post comments on https://testlp.thimpress.com and the same problem is happening there too. I've posted a couple of comments on lesson L1 of course Course 1 and, even if you have comments moderated and they don't appear yet, I can still see it trying to redirect me on the wrong permalink after I click on 'Post comment'.

@tungnxt89
Copy link
Collaborator

Hi voria,

You don't see your comment, because, the system waits for approve like the image
We'll approve it, and you can come back to check.

Thanks.

@voria
Copy link
Author

voria commented Mar 21, 2023

Just for info, I've update to the just-released v4.2.2.3, the problem is still there.
Again, the problem first appeared in v4.2.2, downgrading to v4.2.1.1 fixes it.

@voria
Copy link
Author

voria commented Mar 21, 2023

My comments at https://testlp.thimpress.com/ have been approved, and the problem is there as I described.

I posted my comments at https://testlp.thimpress.com/courses/uncategorized/course-1/lessons/l1/.

If you hover with your mouse over the comments' dates you can see the permalinks are wrong.
For instance, the first comment links to https://testlp.thimpress.com/lessons/l1/#comment-12 while it should link to
https://testlp.thimpress.com/courses/uncategorized/course-1/lessons/l1/#comment-12.

@tungnxt89
Copy link
Collaborator

Hi voria,

We see it, we'll fix it soon. When we have done, we'll reply to you.

Thanks for the feedback.

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

2 participants