Explorar el Código

addTrailingSlash is underestimated

shinoka7 hace 6 años
padre
commit
7ae9140dbe
Se han modificado 1 ficheros con 1 adiciones y 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);
           });