Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(macros/AccessibilitySidebar): remove deleted Annotations page #11040

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

OnkarRuikar
Copy link
Contributor

Summary

The macro throws a confusing flaw: Error: wrong xref macro used (consider changing which macro you use)

Issue

The error is thrown by smartLink function because the document Web/Accessibility/ARIA/Annotations has been deleted and redirects to parent dir.

Solution

Remove the deleted doc from the sidebar.

Also, the smartLink function should throw error with message related to the actual issue and not the cryptic one saying wrong macro usage. Changing smartLink function may break other macros and effort will be significant, so let's fix it another day.

Testing

Tested using local dev before and after fix.

@OnkarRuikar OnkarRuikar requested a review from a team as a code owner April 30, 2024 13:49
@github-actions github-actions bot added the macros tracking issues related to kumascript macros label Apr 30, 2024
@teoli2003
Copy link
Contributor

Great, Onkar! This created about 150 flaws. 🥳

@caugner caugner changed the title fix(macro): fix a flaw in AccessiblitySidebar.ejs fix(macros/AccessibilitySidebar): remove deleted Annotations page Apr 30, 2024
@caugner caugner merged commit fca5342 into mdn:main Apr 30, 2024
9 checks passed
@OnkarRuikar OnkarRuikar deleted the a11y_sidebar branch May 1, 2024 01:48
@estelle
Copy link
Member

estelle commented May 1, 2024

Thanks everyone!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
macros tracking issues related to kumascript macros
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants