Inline URLs without the MEDIA aspect

grahamperrin

Daemon

Reaction score: 345
Messages: 1,165

Yesterday I struggled for around ten minutes, trying, failing to get a Reddit URL inline, within a sentence, without it being interpreted as MEDIA.

The quick brown fox jumped over the View: https://old.reddit.com/r/freebsd/comments/iw2b69/-/
URL within a sentence.


Can this effect be avoided? I want a sentence that appears to be a sentence.



I can prevent parsing, however this defeats the object of providing what should be a link:

The quick brown fox jumped over the <https://old.reddit.com/r/freebsd/comments/iw2b69/-/> URL within a sentence.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 11,559
Messages: 37,877

Hit that "[ ]" button and switch to bbcodes. Then remove that 'unfurl' bit from the [url]. Not using the [media] bbcodes should help too. I usually leave the editor on bbcode, typing the actual bbcodes gives me more control than the WYSIWYG editor and the buttons. The forum code itself tries to be too smart for its own good at times.

Example URL:
[url=https://www.freebsd.org]FreeBSD website[/url]
FreeBSD website
 
OP
grahamperrin

grahamperrin

Daemon

Reaction score: 345
Messages: 1,165

Good thinking, however there's no unfurl:

2021-04-10 16:44:49.png


Yesterday I repeatedly edited out the offending code, the MEDIA and SIZE markup seems to insert itself when content is previewed or posted.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 11,559
Messages: 37,877

Yeah, the forum code recognized that it's reddit (or some other media site like youtube) link and transforms it automagically. Can be quite annoying. That's why I always edit posts with bbcodes directly.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 11,559
Messages: 37,877

Apparently there's a toggle switch to turn this off for specific sites, I've turned that automagic transformation off for Reddit URLs. That should help.
 
OP
grahamperrin

grahamperrin

Daemon

Reaction score: 345
Messages: 1,165

… Another option is to use the "raw" editor and enter the bbcodes yourself. That's my preferred setting. …

I do prefer the GUI toolbar, however I very frequently switch in and out of raw mode to fix things.

A few days ago I repeatedly tried, repeatedly failed to get an inline (mid-sentence) YouTube URL without an automated unfurl. In the end I gave up and used NOPARSE to kill the link. The killed link is at https://forums.FreeBSD.org/threads/80716/post-517899

Time to retry … [URL=https://www.youtube.com/watch?v=J3GJvSYykio/]https://www.youtube.com/watch?v=J3GJvSYykio/[/URL] …
View: https://www.youtube.com/watch?v=J3GJvSYykio/
result …
 
OP
grahamperrin

grahamperrin

Daemon

Reaction score: 345
Messages: 1,165

… result: fail. The URL markup is ignored, replaced by what XenForo believes is better.

No longer Solved
 
Top