From 2195be206198d441dd2fbec83769dcfd65f7011c Mon Sep 17 00:00:00 2001 From: Benny Powers Date: Thu, 5 Dec 2024 10:54:52 +0200 Subject: [PATCH] docs: fix edit this page links closes #2074 --- docs/_includes/partials/component/edit-this-page.njk | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/_includes/partials/component/edit-this-page.njk b/docs/_includes/partials/component/edit-this-page.njk index fad40be243..9f8fcfd2bb 100644 --- a/docs/_includes/partials/component/edit-this-page.njk +++ b/docs/_includes/partials/component/edit-this-page.njk @@ -9,7 +9,6 @@ {% endif %} {% endfor %} {% endif %} - {# remove ./ leading on path #} - {% set editPath = (inputPath or page.inputPath) | replace('./', '/') %} - Edit this page on GitHub - \ No newline at end of file + {% set editPath = ('/' + (inputPath or page.inputPath)) | replace(r/^(\.)?\//, '') %} + Edit this page on GitHub +