The discussion My Discourse emojis don’t work when I change my Discourse domain began with guszi explaining that after changing their Discourse domain, emojis stopped working because their URLs still pointed to the old domain. guszi provided an example to illustrate the issue.
Heliouurge suggested using the “Rebuild Html” option on individual posts to fix the issue and mentioned a command line Rails option to rename posts and fix the issue on all posts made prior to the domain change. guszi thanked Heliouurge and later confirmed that the method worked (guszi).
Heliouurge mentioned that while the manual method works, it can be tedious, and there is a command to reprocess posts, which Arkshine identified as rake posts:rebake, also providing a guide for rebaking posts with a pattern. guszi thanked Arkshine for the suggestion, finding it easy and fast to implement.
I feel very sorry for not using the search function to check if my question has been answered before. English is not my main language, so I might have some trouble searching accurately in this English forum. I tried to write this post in English myself, and I rarely used translation software, so there might be some grammar errors. I apologize for that.
My question
Just like the title of this post, I changed my Discourse domain. I love emojis, and there are a lot of emoji pictures in my forum. After I changed my domain, the emojis stopped working! I checked the URLs of these emojis, and they are all pointing to the old domain.
At the end
I feel very frustrated because I can’t use the emojis now. I tried to find the URLs of these emojis and update them, but I’m not sure how to do it. Can anyone help me with this? Thank you so much!
There is a command line Rails Option to rename posts to fix it on all posts made prior to the move
Any uploaded pictures will also be broken. When I ran into this I was not aware of the rails command line fix and rebuilt majority of posts as I came across them.