Add copyable anchor links to section headings

Open Beginner friendly
#96 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
css, html, python

Research direction

Find the templates or components that render payload and documentation headings, along with the styles for the sticky header and existing scroll-margin-top. Start by tracing how heading ids are generated and used by the contents panel. Add the labeled links for h2 and h3 headings, then confirm they appear on hover and keyboard focus and target the heading ids.

Written by the indexing model from the issue text.

Description

enhancement Website

Summary

Section headings on payload and docs pages have no anchor link, so readers cannot copy a link to a section from the page itself. They have to open the contents panel or edit the URL by hand.

Proposal

Show a small "#" link beside each h2 and h3 on hover and keyboard focus. It should link to the heading id and have an accessible label such as "Link to section: Attack Vectors". Optionally copy the full URL on click.

Why

Payload pages are long and are often shared in reports and chats.

Heading hover without anchor link

Notes

Headings already have ids (they are used by the contents panel), so only the link markup and styling are needed. Keep scroll-margin-top so the heading is not hidden behind the sticky header.

Dominant language
Python
Stars
22
Forks
14
Avg merge
14h 14m
Merged PRs (30d)
29

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OWASP/OWASP-Hunting

All issues in OWASP/OWASP-Hunting

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.