Skip to content

Replace devhub.docs links to MDN by EW #8127

Closed

Description

@wagnerand

On the developer hub (and maybe in other places), we link to MDN, which in turn redirects to EW, for example https://github.com/mozilla/addons-server/blob/master/src/olympia/devhub/views.py#L1791-L1807 . We should link to the EW pages directly, as MDN is going through some bigger changes and redirects might break at some point.

// cc @caitmuenster

Activity

  1. eviljeff commented on Jan 6, 2021

    @eviljeff
  2. caitmuenster commented on Jan 7, 2021

    @caitmuenster

    This is an exciting bug for the legacy Dev Hub! It seems like some of the things referenced in https://github.com/mozilla/addons-server/blob/master/src/olympia/devhub/views.py#L1791-L1807 aren't being used. Here's what I see on the legacy DevHub:

    Screen Shot 2021-01-07 at 12 17 13 PM

    I'm not sure where some of these other links get referenced, but we should be able to remove the following:

    • 'how-to/other-addons': '#Other_types_of_add-ons',
    • 'how-to/thunderbird-mobile': '#Application-specific',
    • 'themes': '/Themes/Background',
    • 'themes/faq': '/Themes/Background/FAQ',
  3. eviljeff commented on Jan 8, 2021

    @eviljeff
    Member

    (I should have looked at the link to the code before I commented!)

    https://github.com/mozilla/addons-server/blob/master/src/olympia/devhub/views.py#L1791-L1807 are old redirects from /developers/docs/xxx e.g. https://addons.mozilla.org/developers/docs/themes goes to https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/Themes/Background (which is a 404)

    If we don't want to keep those redirect around any longer we could remove it. There are another 39 23* references to MDN in the addons-server codebase though (some in emails, etc) - the links in the devhub header @caitmuenster noted are the most prominent - should they all be changed from MDN?

    (*16 were in test files/comments)

  4. caitmuenster commented on Jan 8, 2021

    @caitmuenster

    The links in the emails do need to be updated. :/ Would we need to file a separate issue for that?

    the links in the devhub header @caitmuenster noted are the most prominent - should they all be changed from MDN?

    Yes! It also looks like we have an update for the new Dev Hub front-end:
    Screen Shot 2021-01-07 at 12 05 04 PM

  5. eviljeff commented on Jan 11, 2021

    @eviljeff
  6. eviljeff commented on Jan 11, 2021

    @eviljeff
  7. eviljeff commented on Mar 16, 2021

    @eviljeff
    Member

    Filed #8255 for remaining links to devhub.

    In addition to the other changes made in spun-off issues already, this issue still contains, imo, two different problems - one is the old redirects that @wagnerand reports in the issue summary, and the other is the out of date nav bar that @caitmuenster has detailed in the 2 comments. I'll leave Caitlin and Andreas to fight over who gets to claim this issue and who has to log a new one! 😆

  8. eviljeff commented on Apr 12, 2021

    @eviljeff
    Member

    closing as we've filed follow-ups for everything (I hope!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions