{%- assign redirect_to = page.redirect.to | remove_first: 'https://docs.docker.com' | remove_first: 'http://docs.docker.com' %} {%- if redirect_to contains "://" %} {%- else %} {%- endif %}