If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

In kuma/templates/base.html {{ MEDIA_URL }} gives the wrong value

RESOLVED WONTFIX

Status

Mozilla Developer Network
Editing
RESOLVED WONTFIX
5 years ago
5 years ago

People

(Reporter: teoli, Unassigned)

Tracking

Details

(Reporter)

Description

5 years ago
In kuma/templates/base.html {{ MEDIA_URL }} gives the wrong value for its usage:

it returns "//developer.mozilla.org/media/" which leads to numerous erroneous URLs in the page like:
//developer.mozilla.org/media/img/favicon.ico (there a dozen of these in each page source)

It should returns:
"https://developer.mozilla.org/media/" (or something else than {{ MEDIA_URL }} should be used to generate valid URLs)
Where are you seeing errors with URLs starting with "//" ?

Marking as invalid since no error is seen in the console, but feel free to reopen.
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → WONTFIX
(Reporter)

Comment 2

5 years ago
The URL is indeed valid. So no error (my bad understanding of the relative URL syntax)

But we should drop //developer.mozilla.org as it useless. We should only have "/media/", it would just make the HTML code shorter (17 occurence *24 = 408 bytes).

Maybe one day we would use a CDN or another domain, but for the moment, we can just drop it :-).

But no big priority.
(Assignee)

Updated

5 years ago
Version: Kuma → unspecified
(Assignee)

Updated

5 years ago
Component: Docs Platform → Editing
Product: Mozilla Developer Network → Mozilla Developer Network
You need to log in before you can comment on or make changes to this bug.