To get the root parent you would have to write a plugin and traverse up until you hit parentCid=0, this isn't available in core.
To detect page changes listen to the action:ajaxify.end client side event.
Hi there,
We've updated our favicon this year and the new image is showing on the browser just fine. The new image is also showing on socials, with no issues. However, when I share the link of our forums to Slack, it shows the old favicon image. I can confirm that we don't have any old images in /nodebb/public/uploads/system.
@baris said in Favicon Not Updating When Sharing Forum To Slack:
Is this the old icon?
Did you try restarting your loadbalancer and nodebb after uploading the new icon?
The red icon is the latest one. The 21 icon is older.
I haven't restarted nodebb. I should probably do that later tonight when we have less active users. I'll report back after that. Thanks, Baris!
@baris said in Favicon Not Updating When Sharing Forum To Slack:
No problem, usually that icon is cached both by nginx and nodebb so changing it requires the restart of both.
Noted!
@baris said in Favicon Not Updating When Sharing Forum To Slack:
Also check your touchicon and make sure its the correct one. It is uploaded on the same place as the favicon.
Yup, I also updated our touch icon earlier. We have the latest image on the server. I guess I just need to restart nginx and nodebb.
@baris said in Favicon Not Updating When Sharing Forum To Slack:
No problem, usually that icon is cached both by nginx and nodebb so changing it requires the restart of both.
Hi @baris , I restarted both nginx and nodebb like you suggested, but the issue persists. I tried clearing advanced cache in admin CP, but that didn't help either.
Any other ideas on how to resolve this?
@baris said in Favicon Not Updating When Sharing Forum To Slack:
Seems to work fine for me now in slack.
Interesting... I even cleared the cache in Slack, but I'm still getting the old touchimage...
I'm curious how often does Slack clear their cache now..