From 031097a5ecef848bd83342558b3056fd68e1b20f Mon Sep 17 00:00:00 2001 From: Berkus Decker Date: Fri, 20 May 2022 13:45:22 +0300 Subject: [PATCH] Add baseurl support to sidebar-nav menu --- _includes/path-active.liquid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/path-active.liquid b/_includes/path-active.liquid index 4d03ce1..266c643 100644 --- a/_includes/path-active.liquid +++ b/_includes/path-active.liquid @@ -1,4 +1,4 @@ -{% assign page_url = page.url | append: "/" | replace:"//","/" %} +{% assign page_url = page.url | prepend: site.baseurl | append: "/" | replace:"//","/" %} {% assign link_url = include.href | append: "/" | replace:"//","/" %} {% assign page_url_array = page_url | split: "/" %} {% assign path_to_page_url = page_url_array | pop | join: "/" | append: "/" %}