Template:LiveSampleURL

  • Revision slug: Template:LiveSampleURL
  • Revision title: Template:LiveSampleURL
  • Revision id: 337899
  • Created:
  • Creator: lmorchard
  • Is current revision? No
  • Comment Added revision_id to sample URL to bust cache in the iframe when the document is edited.

Revision Content

<%= env.url.replace('developer.mozilla.org', 'mdn.mozillademos.org') + '$samples/' + $0 + '?revision=' + env.revision_id %>

Revision Source

<%= env.url.replace('developer.mozilla.org', 'mdn.mozillademos.org') + '$samples/' + $0 + '?revision=' + env.revision_id %>
Revert to this revision