You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there is content in the ./public/default.md file, creating a new note by clicking on the "New" button in the navigation bar correctly creates a new note pre-filled with the content of the default file. However, when creating a new note by directly accessing a URL (using CMD_ALLOW_FREEURL=true), the note is blank and doesn't contain the default content.
The text was updated successfully, but these errors were encountered:
I traced the code and found that the free url actually finds the corresponding docs file in the public path (like /test will find /public/docs/test.md) and tries to put the content from the file.
Since the file doesn't exist in this case, it didn't catch it and ignore to get the content from default md. I think this might be a bug.
See code here: https://github.com/hackmdio/codimd/blob/develop/lib/models/note.js#L100
If there is content in the
./public/default.md
file, creating a new note by clicking on the "New" button in the navigation bar correctly creates a new note pre-filled with the content of the default file. However, when creating a new note by directly accessing a URL (usingCMD_ALLOW_FREEURL=true
), the note is blank and doesn't contain the default content.The text was updated successfully, but these errors were encountered: