You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a feature has an mdn_url that points to an anchor of an MDN page, and that page is removed and redirected to another page with an anchor, then this redirect target replaces the mdn_url and the current anchor gets lost, even if the redirect target has an anchor corresponding to the old mdn_url.
/cc @fiji-flo It would be useful, if the index.json contained a list or map of all anchors of the page. Is this something you have considered, or would consider for a future version of rari? (Side-note: This would also be useful for "redirecting" en-US anchors on other locales to the localized anchor, which I have mentioned recently.)
caugner
changed the title
Linter replaced more specific MDN urls
Linter replaces MDN url anchor when page is now redirecting to anchor
Nov 20, 2024
Anchors are a lovely topic. One of my biggest goals is to move to GFM like anchors which would help a lot.
I don't want to add more redundant data to the index.json. However, validating id/anchors and using them for redirects and and other task is on the agenda.
For this case it would not be straight forward, just because and id (and thereby a heading) matches doesn't imply that where we should point. There's lot of pages that have the same id many times (with a unique added suffix) which makes this even worth.
@queengooborg Maybe what we should do is to change the behavior as follows: Error if the current mdn_url contains an anchor, and don't auto-fix it. Wdyt?
What type of issue is this?
Linter issue
What is the issue?
If a feature has an
mdn_url
that points to an anchor of an MDN page, and that page is removed and redirected to another page with an anchor, then this redirect target replaces themdn_url
and the current anchor gets lost, even if the redirect target has an anchor corresponding to the oldmdn_url
.See: 4c58e86
What behavior were you expecting?
We should have not overwritten these specific MDN urls.
What version(s) of BCD is the issue present in?
main
branchDo you have anything more you want to share?
No response
The text was updated successfully, but these errors were encountered: