Exporting as markdown on desktop destroys url by replacing / with _

Operating system

macOS

Joplin version

3.6.14

Desktop version info

Joplin 3.6.14 (prod, darwin)

Device: darwin, Apple M2
Client ID: a54c2f96659145cab5d4dc95f1f932a8
Sync Version: 3
Profile Version: 49
Keychain Supported: Yes
Alternative instance ID: -
Sync target: (None)
Editor: Markdown

Revision: 7e2765a

Backup: 1.5.1
Freehand Drawing: 4.3.0

What issue do you have?

I have some notes where I saved an url in the title to remember to read this page later.

When I export them to markdown, I get a text file for each note but since file names cannot have slash in them / these slashes are replaced by underscore _ instead, destroying the urls.

This cannot easily be fixed by replacing all _ with / since the urls might also contain real underscores and we cannot know which is which.

I suggest changing the export so that a note only containing an url is exported with the url in the text file contents, since the text file is empty anyway whan the note only has a title. Then we would get the real url inside the text file.

If you use the export to md + frontmatter option, it will retain the original filename in the contents (in the frontmatter)