{% capture version %}/{{page.version}}/{% endcapture %} {% capture baseto %}os/{{page.version}}/en/{% endcapture %} {% capture redirectto %}{{site.baseurl}}/{{ page.path | replace_first: "os/", baseto | replace: "index.md", "" }}{% endcapture %}