Online Editor fails to create new file

Hi,

I’ve set up the online editor (free). It’s working fine to view and edit existing markdown files and I can see and use resources without a problem.

What I can’t do is make anything new. If I click on the “+ New File” button I am simply taken to the home page. The javascript console shows an error from index.js line 8:

“Failed to load a resource: the server responded with a status of 404()”. and the file listed is

https://www.curtisfamily.org.uk/undefined

Index.js line 8 simply logs to the console, so something else is going wrong.

Am I unable to create new files with the online editor unless I pay for a licence or is something broken? It’s puzzling as what look like similar functions for edit and saving edited files seem to work fine, which also suggests that the relevant permissions are OK.

Hi @chrisecurtis,

Sorry to hear that you’re having trouble with the online editor. Let’s see if we can figure out what’s going on :blush:

The free version allows you to create new files, so something is not working as expected.

I’d need to see the network requests for this before I can tell if it’s an issue with your hosting provider or with the online editor.

Any chance you can share a login for your online editor with me or share the network requests happening when you try to create a new file?

Produced a network timeline but the forum wouldn’t allow me to upload a json or zip.

I think I may have found the bug anyway.

Although it appears to drop to the home page when I press the “+ new file” button, the browser reports it as:

https://www.curtisfamily.org.uk/#/files/0/new

I noticed that other urls in the editor had a slightly different structure e.g. :

https://www.curtisfamily.org.uk/admin/#/files/0/edit/weatherjune2026.md

(i.e. they include the admin folder)

So I tried amending the url:

https://www.curtisfamily.org.uk/admin/#/0/files/new

and I got a perfectly functional new file page and could use it to make a new file. Looking at the source for the page containing the “+New File” button I can see that the button is hard coded like this:

<a href="#/files/0/new" class="inline-flex items-center gap-1.5 h-8 px-3 bg-accent text-white hover:bg-accent/90 rounded-lg text-sm font-medium transition-colors"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class=""><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>New File</a>

That is: it needs “/admin/” to be inserted before the # in that url.

Digging a little deeper. That url seems to be generated in the javascript - I stopped digging at that point!

ok, thanks again for the detailed info. I’m digging in to this one now!

found the issue, this will be fixed in the next build :slight_smile:

Thank you.