Skip to content

Don't make links to same-page #anchors into targets #32

Description

@philgyford

If I save a MentionableMixin object that contains links to anchors elsewhere on the page, those are treated as targets to which outgoing webmentions should be sent.

e.g. On this page there is this HTML:

<p id="s5"><a class="section-anchor" href="#s5" title="Link to this section">&sect;</a> ...

and I end up with Outgoing Webmention Statuses that include:

Screenshot 2022-03-30 at 15 05 42

etc. I guess filter out any links that are # fragment links to the page itself?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions