diff options
author | Clément Bénier <clement.benier@iot.bzh> | 2019-04-15 18:38:34 +0200 |
---|---|---|
committer | Clément Bénier <clement.benier@iot.bzh> | 2019-04-15 18:38:34 +0200 |
commit | 838b120e7570398f48135766ecc097ed19726f2d (patch) | |
tree | 8179f5444fc3f781480840a4dc0199f06ec06134 /site | |
parent | ba63c5c9db43924bf4238f1c85eee4bc5d057868 (diff) |
multi-versions: fix broken links between versions
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
Diffstat (limited to 'site')
-rw-r--r-- | site/_layouts/doc.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/site/_layouts/doc.html b/site/_layouts/doc.html index 2b6cf39..fb02386 100644 --- a/site/_layouts/doc.html +++ b/site/_layouts/doc.html @@ -205,6 +205,8 @@ set some constants {% capture other_version_root %}{{site.docsurl}}/{{ page.language }}/{{ other_version_string }}/{% endcapture %} {% assign other_version_url = page.url | replace:VERSION_URL,other_version_root %} + {% assign other_version_url = VERSION_ROOT | replace: page.version, other_version_string %} + {% comment %} {% unless ALL_PAGES contains other_version_url %} {% assign other_version_url = other_version_root %} |