Closed
Bug 1151298
Opened 10 years ago
Closed 7 years ago
Add a button while hovering a id to generate a link with anchor (ala GitHub)
Categories
(developer.mozilla.org Graveyard :: Wiki pages, enhancement)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1307217
People
(Reporter: sphinx_knight, Unassigned)
References
Details
(Whiteboard: [specification][type:feature])
Attachments
(2 files)
What problems would this solve?
===============================
This would make easier for readers to create link towards specific points in MDN articles. Currently, only heading element from the ToC can generate such links though some other elements have IDs.
Who would use this?
===================
Readers of the page who want to generate a link to a specific point in the page (non necessarily a heading element) in order to share/reference it.
What would users see?
=====================
Users will see a link button while hovering the element of the page to link too (cf. GitHub which does this)
What would users do? What would happen as a result?
===================================================
Users would be able to click on this button to get the URL to be exactly the one corresponding to this point in the page (whether it's in the URL bar or in the clipboard)
For example, they could create https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest#xmlhttprequest-responsetype withouth going through the dev tools looking for the ID.
A user receiving such a link would be directly sent to the exact point of the page related to the info.
Is there anything else we should know?
======================================
This has been a real user case explained on IRC. This feature could be inspired from the one that is already in GitHub.
Comment 3•10 years ago
|
||
To be noted: github feature only works on headers. It indeed doesn't make sense to have a link to the middle of a paragraph.
Hence, I think this feature should be added for:
- <h*> (whether in the ToC or not)
- <dt>
... and maybe others I haven't thought about.
Comment 4•10 years ago
|
||
The New York times has a way to do this that doesn't involve generating IDs but the links expire if the text is changed significantly: http://open.blogs.nytimes.com/2011/01/11/emphasis-update-and-source/
What Julien is describing is certainly the more familiar UI pattern and probably would be easier to make work without javascript.
Updated•10 years ago
|
Severity: normal → enhancement
Status: UNCONFIRMED → NEW
Component: Design → Wiki pages
Ever confirmed: true
This was dealt with https://bugzilla.mozilla.org/show_bug.cgi?id=1307217 though I wonder the histories of those two bugs are different.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Updated•5 years ago
|
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•