mirror of
https://github.com/requarks/wiki.git
synced 2026-03-02 22:57:36 -05:00
Name Anchor links work in Editor, but do not on actual page #1134
Labels
No labels
BETA
BETA
accessibility
backlog
bug
can't replicate
contrib-easy
contrib-hard
contrib-medium
deferred
documentation
duplicate
duplicate
editors
enhancement
invalid
localization
migrate
ui
under review
v3
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/wiki#1134
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @uxinkc on GitHub (Feb 21, 2020).
Originally assigned to: @NGPixel on GitHub.
Describe the bug
When I create a named anchor to scroll to a specific section on the page, the named anchor works in the Wiki Editor preview panel, but when saved and viewing the actual page, the named anchor does not work.
To Reproduce
Steps to reproduce the behavior:
<a name="myAnchor">My Anchor</a><a href="#myAnchor">Got to Anchor</a>Screen shots

Expected behavior
Scrolling up to the named anchor.
Additional context
I have tried using both HTML and Markdown syntax, but neither work in the actual page, but BOTH work in the Editor View.
@Smankusors commented on GitHub (Feb 23, 2020):
how about using
idproperty instead ofnameproperty?@uxinkc commented on GitHub (Feb 24, 2020):
Yeah, it seems I have to go that route, but I prefer to use the name attribute as intended, so that the ID attribute can always be freed up for other purposes. It still is a "bug", since name works in the Editor Preview, but not the actual page. A User wouldn't assume something only works in the Editor portion of the application and NOT in the actual page.
@TogarUshindi commented on GitHub (Apr 21, 2021):
Name Anchors would be appreciated since we're batch converting several web 1.0 documents using them.