Przeglądaj źródła

addTrailingSlash is underestimated

shinoka7 6 lat temu
rodzic
commit
7ae9140dbe
1 zmienionych plików z 1 dodań i 1 usunięć
  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);
           });