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

Should focus on the comment area after login and return back #5073

Closed
hikalkan opened this issue Aug 16, 2020 · 0 comments · Fixed by #5134
Closed

Should focus on the comment area after login and return back #5073

hikalkan opened this issue Aug 16, 2020 · 0 comments · Fixed by #5134

Comments

@hikalkan
Copy link
Member

CMS Kit commit area shows a "Login to Reply" or "Login to Write Comment" buttons when user was not authenticated. It redirects to login and comes back to the same page after login. In this case, it should focus to the related commenting area for a better UX.

I added the related comment info to the loginUrlHash (see https://github.com/abpframework/abp/blob/dev/modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Commenting/CommentingViewComponent.cs#L40 and the cshtml side to know how it was set), so you can extract this in the JS side and focus it.

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

Successfully merging a pull request may close this issue.

2 participants