Explorar o código

addTrailingSlash is underestimated

shinoka7 %!s(int64=6) %!d(string=hai) anos
pai
achega
7ae9140dbe
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/server/views/modal/create_page.html

+ 1 - 1
src/server/views/modal/create_page.html

@@ -72,7 +72,7 @@
             // modify href
             const value = $(this).val();
             const pageName = (value === 'children') ? '_template' : '__template';
-            const truePath = "{{ page.path || path | removeTrailingSlash | addTrailingSlash }}";
+            const truePath = "{{ page.path || path | addTrailingSlash }}";
             const link = truePath + pageName + '#edit-form';
             $('#link-to-template').attr('href', link);
           });