From 7d84130471885905a3f663324af602b7be1f7f64 Mon Sep 17 00:00:00 2001 From: Lethosor Date: Tue, 9 Aug 2016 10:39:07 -0400 Subject: [PATCH] Use latest version slug in old version warning --- .../core/static-src/core/js/doc-embed/version-compare.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readthedocs/core/static-src/core/js/doc-embed/version-compare.js b/readthedocs/core/static-src/core/js/doc-embed/version-compare.js index 095421b09cb..d6ec1cf0354 100644 --- a/readthedocs/core/static-src/core/js/doc-embed/version-compare.js +++ b/readthedocs/core/static-src/core/js/doc-embed/version-compare.js @@ -23,7 +23,7 @@ function init(data) { warning .find('a') .attr('href', currentURL) - .text(data.version); + .text(data.slug[0] || data.version); var body = $("div.body"); if (!body.length) {