Jump to content
  • Status: Moved to Github

There is an issue when entering a file name with an extension it gets converted into a link that redirects to the file name with the extension as the address.

main.py blabla.py

User Feedback

Recommended Comments

Matt Finger

Invision Community Team

This is not a bug, but rather the expected behavior since ".py" is the country code top level domain for Paraguay.

PanSevence

Clients
1 hour ago, Matt Finger said:

This is not a bug, but rather the expected behavior since ".py" is the country code top level domain for Paraguay.

It's just not the expected behavior, at least for me. I run a community around programming, and in this case, I often mention file names. However, in this instance, it automatically turns them into links.

teraßyte

Clients
(edited)

Maybe the auto-linking could be changed to work only if the word starts with a protocol (http/https)?

Also, the current conversion changes these filenames into HTTP links rather than HTTPS. All links should use HTTPS by default, IMO.

Edited by teraßyte

Matt Finger

Invision Community Team
On 3/7/2025 at 4:15 PM, teraßyte said:

Maybe the auto-linking could be changed to work only if the word starts with a protocol (http/https)?

Hmm, maybe but that's a bit more complicated than it sounds since it also recognizes emails and phone numbers. I'd also argue it ends up being convenient more often than not across the board. Google.com GitHub.com, invisioncommunity.com, tiptap.dev are some examples.

I think the real issue which we'll try to sort out is making it easier to undo the auto link without opening the link panel. For example , an automatic link message with a "revert to plaintext" option (like when automatically embedding content), and reverting when the user presses Escape.

On 3/7/2025 at 4:15 PM, teraßyte said:

Also, the current conversion changes these filenames into HTTP links rather than HTTPS. All links should use HTTPS by default, IMO.

Yeah I agree.