Skip to content

Extension Workshop URLS must end with a trailing slash to not lose query params #8252

Closed
mozilla/addons-server
#16923

Description

@muffinresearch

Related to mozilla/extension-workshop#935 and #8234

Query params are being lost in the redirection to add a slash. Since there doesn't appear to be a way to fix the redirection on s3, for now our best mitigation will be to ensure all extension workshop URLS have a trailing slash to avoid the redirection.

To fix this we'll need to search for extension workshop urls and update accordingly.

Here's a repo search, but a code search locally should also be checked.

Activity

  1. eviljeff commented on Mar 16, 2021

    @eviljeff
    Member

    From a local search, it's looks like it's just the devhub links from #8234 that were added without the trailing slash:

    olympia • src\olympia\devhub\templates\devhub\nav.html:
      36        <ul>
      37:         <li><a href="https://extensionworkshop.com/documentation/develop?utm_source=addons.mozilla.org&utm_medium=referral&utm_content=dev-hub-legacy-menu-link">
      38            {{ _('Extension Development') }}</a></li>
      39:         <li><a href="https://extensionworkshop.com/documentation/themes?utm_source=addons.mozilla.org&utm_medium=referral&utm_content=dev-hub-legacy-menu-link">
      40            {{ _('Themes') }}</a></li>
      41:         <li><a href="https://extensionworkshop.com/documentation/publish/add-on-policies?utm_source=addons.mozilla.org&utm_medium=referral&utm_content=dev-hub-legacy-menu-link">
      42            {{ _('Developer Policies') }}</a></li>
    

    We also have an EXTENSION_WORKSHOP_URL setting (I just checked and all the use with that setting ends in a / already) - it'd be more consistent if those links above were changed to use the setting, imo.

  2. eviljeff commented on Mar 16, 2021

    @eviljeff
    Member

    Also logged #8254 for the urls without UTM params currently

  3. championshuttler commented on Mar 16, 2021

    @championshuttler

    @siddhi523 looks interesting?

  4. siddhi523 commented on Mar 16, 2021

    @siddhi523

    I will try this thanks @championshuttler

  5. caitmuenster commented on Apr 12, 2021

    @caitmuenster

    To fix this issue, a / needs to be added before the ? mark in the URL.

    If this is your first contribution, please refer to https://wiki.mozilla.org/Add-ons/Contribute/Code on how to get started.

    Mentor: @willdurand

    @siddhi523, would you be interested in fixing this? :)

  6. siddhi523 commented on Apr 12, 2021

    @siddhi523

    Thanks @caitmuenster I got engaged with some other issues, On it!!

  7. added this to the 2021.04.22 milestone on Apr 13, 2021
  8. AlexandraMoga commented on Apr 19, 2021

    @AlexandraMoga

    UTM parameters are now preserved when navigating to Extension Workshop from the Documentation menu in the legacy DevHub:

    lqw4UMomwP

    This issue is verified fixed on -dev.

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

Metadata

Metadata

Assignees

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions