<div dir="ltr"><div>I filed bug 1285657 to rewrite MXR links in Bugzilla to DXR. Are there other sites (MDN) that have a lot of links that we should look to rewrite?<br><br></div>Lawrence<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 8, 2016 at 3:49 PM, Gijs Kruitbosch <span dir="ltr"><<a href="mailto:gijskruitbosch@gmail.com" target="_blank">gijskruitbosch@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>The problem is that if you're on a bmo
page with these "perma"links, really the ideal case is that they
are indeed permalinks and continue to work, especially where they
point to specific lines in specific revisions. The interstitial
just makes it harder for people to get to that info. A 404 on a
working DXR, if the file has really disappeared or something, is
still better than the 'hard hat' page from which the path to the
data you want is much longer.<br>
<br>
In case this is useful for folks: I wrote a webextension that
rewrites these links and that obeys the "rev" and "mark" query
params from MXR links and rewrites them to the equivalent DXR URL
syntax:
<a href="https://addons.mozilla.org/en-US/firefox/addon/mxr-to-dxr-webextension/" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/mxr-to-dxr-webextension/</a>
.<span class="HOEnZb"><font color="#888888"><br>
<br>
~ Gijs</font></span><div><div class="h5"><br>
<br>
On 08/07/2016 20:27, Lawrence Mandel wrote:<br>
</div></div></div><div><div class="h5">
<blockquote type="cite">
<div dir="ltr">
<div>We do in the case of 3rd party software referencing files
from MXR (and I'm told there is a lot of this). We also can't
guarantee that MXR URLs will direct to the right place in DXR.
There is likely a balance to be struck here with highly
referenced files from 3rd party software getting an
interstitial page and other files not getting the page. Let's
start with getting the page with the redirect in place and
then iterate from there as required.<br>
<br>
</div>
Lawrence<br>
<div>
<div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Jul 8, 2016 at 3:24 PM,
Bobby Holley <span dir="ltr"><<a href="mailto:bobbyholley@gmail.com" target="_blank"></a><a href="mailto:bobbyholley@gmail.com" target="_blank">bobbyholley@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div>Can we skip the interstitial page and make the
notice (if any) more unobtrusive somehow? There
are tons of mxr links all over the place, and many
of them are immutable. We don't gain anything by
informing the viewer about their obsolescence
instead of showing them the content they want.<br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">
<div>
<div>On Fri, Jul 8, 2016 at 12:20 PM,
Lawrence Mandel <span dir="ltr"><<a href="mailto:lmandel@mozilla.com" target="_blank"></a><a href="mailto:lmandel@mozilla.com" target="_blank">lmandel@mozilla.com</a>></span>
wrote:<br>
</div>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div>dev-platform was not included
on my response below. Looping back in to
this<br>
fork of the thread.<br>
<br>
On Fri, Jul 8, 2016 at 10:55 AM, Lawrence
Mandel <<a href="mailto:lmandel@mozilla.com" target="_blank">lmandel@mozilla.com</a>><br>
wrote:<br>
<br>
> Sorry Dao. I have seen some responses.
Maybe they were off list. We're<br>
> working on details now. I'm going to
get someone to put the redirects in<br>
> place, likely with an interstitial page
advising that MXR has been<br>
> decommissioned, by next week.<br>
><br>
> Lawrence<br>
><br>
><br>
> On Friday, 8 July 2016, Dão Gottwald
<<a href="mailto:dgottwald@mozilla.com" target="_blank">dgottwald@mozilla.com</a>>
wrote:<br>
><br>
>> Why has nobody responded to the
requests for a short-term fix for MXR<br>
>> URLs for more than a week? Are the
people responsible for MXR not in this<br>
>> list?<br>
>><br>
>> 2016-07-07 18:23 GMT+02:00 Eric
Shepherd <<a href="mailto:eshepherd@mozilla.com" target="_blank">eshepherd@mozilla.com</a>>:<br>
>><br>
>>> We have tons of mxr links all
through MDN, fwiw. I am updating the<br>
>>> macros that generate them, but
odds are very good these links will be<br>
>>> around for a good while.<br>
>>><br>
>>><br>
>>> That would be perfectly fine
for my purposes, I expect, as long as it<br>
>>> dealt with the relevant mxr
features. What I want is for links to
possibly<br>
>>> specific lines of possibly
specific revisions of specific files to
work.<br>
>>> Ideally with the highlighting
bits too.<br>
>>><br>
</div>
</div>
<span><font color="#888888">
<div>
<div>>>><br>
>>> --<br>
>>><br>
>>> Eric Shepherd<br>
>>> Senior Technical Writer<br>
</div>
</div>
>>> Mozilla Developer Network <<a href="https://developer.mozilla.org/" rel="noreferrer" target="_blank"></a><a href="https://developer.mozilla.org/" target="_blank">https://developer.mozilla.org/</a>><span><br>
>>> Blog: <a href="https://www.bitstampede.com/" rel="noreferrer" target="_blank"></a><a href="https://www.bitstampede.com/" target="_blank">https://www.bitstampede.com/</a><br>
>>> Twitter: <a href="http://twitter.com/sheppy" rel="noreferrer" target="_blank"></a><a href="http://twitter.com/sheppy" target="_blank">http://twitter.com/sheppy</a><br>
>>> Doodle: <a href="http://doodle.com/the.sheppy" rel="noreferrer" target="_blank"></a><a href="http://doodle.com/the.sheppy" target="_blank">http://doodle.com/the.sheppy</a><br>
</span></font></span><span><span>>>><br>
>>><br>
>>>
_______________________________________________<br>
>>> firefox-dev mailing list<br>
>>> <a href="mailto:firefox-dev@mozilla.org" target="_blank">firefox-dev@mozilla.org</a><br>
>>> <a href="https://mail.mozilla.org/listinfo/firefox-dev" rel="noreferrer" target="_blank">https://mail.mozilla.org/listinfo/firefox-dev</a><br>
>>><br>
>>><br>
>><br>
</span></span><span>
<div>
<div>_______________________________________________<br>
dev-platform mailing list<br>
<a href="mailto:dev-platform@lists.mozilla.org" target="_blank">dev-platform@lists.mozilla.org</a><br>
<a href="https://lists.mozilla.org/listinfo/dev-platform" rel="noreferrer" target="_blank">https://lists.mozilla.org/listinfo/dev-platform</a><br>
</div>
</div>
</span></blockquote>
</div>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
firefox-dev mailing list
<a href="mailto:firefox-dev@mozilla.org" target="_blank">firefox-dev@mozilla.org</a>
<a href="https://mail.mozilla.org/listinfo/firefox-dev" target="_blank">https://mail.mozilla.org/listinfo/firefox-dev</a>
</pre>
</blockquote>
<p><br>
</p>
</div></div></div>
</blockquote></div><br></div>