Links to resources in threads do not unfurl

smallwheels

Well-known member
When linking to a resource from within a thread by copying the link to the ressource into the posting this link does not get unfurled but is a text link only.
This makes the link less attractive. Generally XF does unfurl links (interal and external ones), so it is less an XF bug as a RM bug. As in general links are unfurled within XF it makes no sense that those to RM are not.

Affected version: XF 2.2.16 with RM, did not test this on 2.3

There is a bug report from 2022 that annotates the same thing specifically for the autmatically created start postings of discussion therads that belong to ressources.


This was closed as "works as designed" with the statement

The BB code renderer essentially has different modes for different scenarios and the choices here are deliberate. It's deliberately done as it's supposed to have reduced formatting, normal links etc. mostly because it's supposed to be a short snippet.

This may be the case for these automatically created threads (though debatable) but clearly not for links within normal threads and postings.
 
Here on the forum it works as it should:

Bildschirm­foto 2024-11-29 um 17.01.16.webp

On my forum (XF 2.2.16, RM 2.2.5) it does not:

Bildschirm­foto 2024-11-29 um 17.04.30.webp

I am not aware that I have misconfigured something (but one can never now, also not if it's not a plugin causing the issue).
 
Probably more of a troubleshooting thing.

There’s an unfurl tester in the admin control panel under Tools. I’d probably start there.
 
If I remember correctly there is/was an issue with WHM and cPanel where links to content hosted on the same server as the website don't unfurl. It's something that I came across in the past
 
D
If I remember correctly there is/was an issue with WHM and cPanel where links to content hosted on the same server as the website don't unfurl. It's something that I came across in the past
Don't know what WHM is but I don't have C-Panel. I'm on a shared hosting account with a good plain simple hosting backend. URLs within my Forum (which is obviously also on the same server) unfurl just fine. It is only links to resources that are affected.
 
What was the result of running this with a resource URL?

The following error occurred while fetching metadata from URL (....)
Could not fetch metadata from URL with error: Response returned a non-successful status code: 403


This probably means PEBCAK-error. To see resources on my forum you have to be logged in. The user ist logged in but the XF is not, so cannot unfurl despite the user writing the post with the link could as well as the the one viewing the post, as long as he is logged in.

In the end it makes total sense, despite in this case being a bit unlucky. If the unfurling was created on page load using the actual user's permissions it should work, if not than not.
 
Last edited:
Back
Top Bottom