tl;dr: plain DXR links quickly become outdated -> push people to use perma-links instead by adjusting the DXR UI.

Long version:

When a link like [1] - let's call it a plain link, the link copied from the URL bar - is added to e.g. bugzilla or an email, it will soon point to a wrong line when changes to the file are made or even become an invalid link when the file is renamed or goes away completely.

The correct link is either [2] (perma link) or [3] (blame link) referring the changeset.

I can see people putting these plain links to bugzilla, emails, blog posts on and on. They simply copy the URL from the address bar.

Can we find some way to push users of DXR to use the correct permanent URL to link to? I personally don't fine the "Permalink" markup under Navigation enough visible or action-like. A big button [ Copy link to this code ] or something? Not sure. But I find this be a problem, so something should be done here.


-hb-



[1] https://dxr.mozilla.org/mozilla-central/source/moz.build#65

[2] https://dxr.mozilla.org/mozilla-central/rev/763fe887c37cee5fcfe0f00e94fdffc84a41ea1c/moz.build#65

[3] https://hg.mozilla.org/mozilla-central/annotate/763fe887c37cee5fcfe0f00e94fdffc84a41ea1c/moz.build#l65


_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to