You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create an absolute url for comments so we can provide a more contextual environment for how a single comment is displayed.
Without this, the default pattern has been to link back to the absolute_url of the content_object that the comment is associated to. This isn't ideal as it could take the user a number of clicks to try to find the corresponding comment via pagination.
Proposed Solution:
Create a view/url that takes a comment_id and gets the comment as well as the page on which it can be found; then redirects the user to that comment's content_object.get_absolute_url() passing both the comment_id and p as GET params.
Optionally modify the comment detail template(s) to add <a name='{{ comment.id }} /> tags next to each comment so that the user can be directed to the comment requested without having to scroll. Optionally highlight the specified comment to make it easy for them to spot.
The text was updated successfully, but these errors were encountered:
cooncesean
pushed a commit
to cooncesean/ella-comments
that referenced
this issue
Aug 7, 2012
…il()`. This view fetches the requested comment, then using both kwargs and the comment's `content_object`s properties, determines the page (in pagination) on which the comment is located and finally redirects the user to the `absolute_url` of the `content_object` that the comment is associated to.
Unit tests are included. ella#8
Create an absolute url for comments so we can provide a more contextual environment for how a single
comment
is displayed.Without this, the default pattern has been to link back to the
absolute_url
of thecontent_object
that the comment is associated to. This isn't ideal as it could take the user a number of clicks to try to find the corresponding comment via pagination.Proposed Solution:
comment_id
and gets the comment as well as the page on which it can be found; then redirects the user to that comment'scontent_object.get_absolute_url()
passing both thecomment_id
andp
as GET params.<a name='{{ comment.id }} />
tags next to each comment so that the user can be directed to the comment requested without having to scroll. Optionally highlight the specified comment to make it easy for them to spot.The text was updated successfully, but these errors were encountered: