Name Anchor links work in Editor, but do not on actual page #1134

Open
opened 2026-02-20 15:28:37 -05:00 by deekerman · 3 comments
Owner

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:

  1. Navigate to page
  2. Click on Edit Page button in lower right corner
  3. Add a named anchor <a name="myAnchor">My Anchor</a>
  4. Further down the page add <a href="#myAnchor">Got to Anchor</a>

Screen shots
Screen Shot 2020-02-21 at 8 39 18 AM

Screen Shot 2020-02-21 at 8 40 29 AM

Screen Shot 2020-02-21 at 8 41 47 AM

Screen Shot 2020-02-21 at 8 42 33 AM

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.

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: 1. Navigate to page 2. Click on Edit Page button in lower right corner 3. Add a named anchor `<a name="myAnchor">My Anchor</a>` 4. Further down the page add `<a href="#myAnchor">Got to Anchor</a>` **Screen shots** ![Screen Shot 2020-02-21 at 8 39 18 AM](https://user-images.githubusercontent.com/53310223/75043455-bc043f80-5485-11ea-8610-711b0a3b384d.png) ![Screen Shot 2020-02-21 at 8 40 29 AM](https://user-images.githubusercontent.com/53310223/75043523-d63e1d80-5485-11ea-8573-d3cfa1792563.png) ![Screen Shot 2020-02-21 at 8 41 47 AM](https://user-images.githubusercontent.com/53310223/75043651-0ab1d980-5486-11ea-90f6-553f79b9bd44.png) ![Screen Shot 2020-02-21 at 8 42 33 AM](https://user-images.githubusercontent.com/53310223/75043727-20270380-5486-11ea-9cec-865ba8e53f25.png) **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.
Author
Owner

@Smankusors commented on GitHub (Feb 23, 2020):

how about using id property instead of name property?

@Smankusors commented on GitHub (Feb 23, 2020): how about using `id` property instead of `name` property?
Author
Owner

@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.

@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.
Author
Owner

@TogarUshindi commented on GitHub (Apr 21, 2021):

Name Anchors would be appreciated since we're batch converting several web 1.0 documents using them.

@TogarUshindi commented on GitHub (Apr 21, 2021): Name Anchors would be appreciated since we're batch converting several web 1.0 documents using them.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/wiki#1134
No description provided.