Closed Bug 783818 Opened 12 years ago Closed 12 years ago

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

Categories

(developer.mozilla.org Graveyard :: Editing, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: teoli, Unassigned)

Details

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
Closed: 12 years ago
Resolution: --- → WONTFIX
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.
Version: Kuma → unspecified
Component: Docs Platform → Editing
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.