Helix Ultimate 2.2.1 Open Graph Bug - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Helix Ultimate 2.2.1 Open Graph Bug

A

Alvaro

Helix Framework 3 days ago

With Helix Ultimate 2.2.1, the following URLs are used for Open Graph if Joomla is installed in a folder other than the domain root:

If local: /joomlafolderdomain.com/joomlafolder/images/blog/blog_02.jpg#joomlaImage://local-images/blog/blog_02.jpg?width=1140&height=640 If external: /joomlafolderimageprovider.com/images/my-image.jpg These are incorrect.

In plugins/system/helixultimate/overrides/layouts/joomla/content/full_image.php, you have correctly implemented $toAbsolute(), which returns the absolute URL. However, in the open_graph layout plugins/system/helixultimate/overrides/layouts/joomla/content/open_graph.php, you are using Uri::root(true) on lines 29 and 44. If $toAbsolute already returns the correct URL, it's unnecessary to use Uri::root(true) again.

Additionally, in the past we had problems with Open Graph image URLs like these: https://domain.com/images/blog/blog_02.jpg#joomlaImage://local-images/blog/blog_02.jpg?width=1140&height=640, which weren't being shared on social media. That's why we have an override of full_image.php, and what we do is clean up the image URL so that it returns domain.com/images/blog/blog_02.jpg.

I'm attaching the two modified files for you to analyze. The important part is open_graph.php. Please fix soon https://limewire.com/d/U2Xt9#lzwaiPhpHc

Regards

0
2 Answers
Atick Eashrak Shuvo
Atick Eashrak Shuvo
Accepted Answer
Support Agent 3 days ago #210493

Hello,

Thank you very much for the detailed explanation and for sharing the modified files — we truly appreciate the time you took to analyze the issue and provide clear examples.

Our development team has reviewed your adjustments, and your approach is correct. Since $toAbsolute() already provides the fully resolved URL, using Uri::root(true) again in open_graph.php is indeed unnecessary and can lead to the incorrect Open Graph paths you described.

Your implementation is safe to use on your sites, and we will include the fix in the upcoming Helix Ultimate release so this behavior works correctly out of the box.

Thank you again for your contribution and for helping us improve the framework.

Kind regards

0
A
Alvaro
Accepted Answer
2 days ago #210598

Hello Atick. Could you check out this post? I've also left a bug report and a tested possible solution. If you need any additional information, I'm happy to help. Regards.

0