Skip to content

Create an Absolute Url for Comments #8

@cooncesean

Description

@cooncesean

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:

  1. 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.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions