Website preview on whatsapp, facebook

50 views
Skip to first unread message

jonatha...@gmail.com

unread,
Jan 2, 2021, 11:25:38 AM1/2/21
to AtoM Users
Dear all,

We are setting up an AtoM site (https://archives-sjchku.com/index.php/) based on AtoM 2.5.3, and encountered a problem with the link preview function on social media such as Whatsapp or Facebook.

When we tried to share the site via android Whatsapp app, the link preview would not appear if the URL began with https. It would only show when it began with http. The same goes with using Whatsapp Web as well as Facebook sharing. I have attached some screenshots for illustration.

For sharing via iOS Whatsapp app, there's no issue with the link preview — the preview shows no matter it began with https or http.

We have set https as our base URL in settings (see attached). However, at an early stage when our SSL certificate was not yet ready, there was a moment when we set http as the base URL. Would this be the reason why the preview only shows for http and not https? Is there a way to change it? (we have cleared cache and restarted php-fpm a number of times but this issue still exists)

Many thanks in advance!

Jonathan


Screenshot 2021-01-03 at 12.14.25 AM.png
Screenshot 2021-01-03 at 12.05.56 AM.png
Screenshot 2021-01-03 at 12.10.46 AM.png

Dan Gillean

unread,
Jan 4, 2021, 4:14:12 PM1/4/21
to ICA-AtoM Users
Hi Jonathan, 

This is a bit more of a configuration and deployment issue than something particular with AtoM, and as such, is a bit out of my personal expertise. However, a couple of suggestions: 

First, navigating to the URL you provided I noticed that the CSS on the entire site seems to be broken at the moment. You can try rebuilding the CSS with the following. First, we'll install the dependencies we need (they are not pre-installed because normally we deliver the CSS precompiled in the tarball): 
  • sudo apt install nodejs npm make
  • sudo npm install -g "less@<2.0.0" 
Now we can use the make command to recompile the base Dominion theme's CSS: 
  • sudo make -C /usr/share/nginx/atom/plugins/arDominionPlugin
If you have a custom theme plugin, do the same with the custom theme plugin as well. 

After that you'll probably want to clear the application cache and restart PHP-FPM as well. Don't forget to clear your browser cache before testing again as well! 

In terms of the link preview issue, if you know of someone knowledgeable about TLS certificates, I'd ask them to take a look - as I said, I think this is mostly a deployment issue, and not anything particular about AtoM. It's also possible that taking a look at an SSL report about your site might help someone figure out how to improve the cert deployment. See for example: 
Finally, I don't know if it will help, but AtoM does have a command-line tool that can help with SEO, that will build an XML sitemap, allowing crawlers for Bing and Google to better index your site. See: 

Cheers, 

Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory
he / him


--
You received this message because you are subscribed to the Google Groups "AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/1e50cafb-6e5b-47dc-b8b9-088ffbb58800n%40googlegroups.com.

jonatha...@gmail.com

unread,
Jan 9, 2021, 6:50:11 AM1/9/21
to AtoM Users
Hi Dan,

Thank you for your suggestions - they are most helpful. We have rebuilt the CSS based on your commands, and will work out the TLS deployment issue.

Best,
Jonathan
Reply all
Reply to author
Forward
0 new messages