r/LemmyMigration • u/aizvo • 5d ago
I customized a Lemmy instance to make its post links easier to share
TL;DR: I updated the Lemmy UI on HelpOS so posts have readable, stable URLs, old title links redirect to the current page, and canonical metadata and sitemap entries point to the preferred address. The goal is to make local reporting easier to find and give search and AI answer tools a clear page to reference, helping Lemmy contribute more useful material to shared world knowledge.
A big advantage of Reddit is that public discussions can stay discoverable long after the conversation ends. Google says people search for helpful Reddit content, and that public, crawlable Reddit content is used for indexing and display. Google's AI Search features can also surface relevant links to indexed pages. That gives Lemmy a useful opportunity: make good discussions and local reporting easy to discover when someone searches for an answer later.
On HelpOS, I customized the Lemmy UI so a post URL includes the community name, stable post ID, and readable title slug. If the title changes, an old slug redirects to the current canonical URL. The same address is used in internal links, page metadata, Open Graph previews, and the sitemap. Google describes redirects, canonical tags, and sitemaps as signals that help it identify preferred URLs and discover pages; the search system decides which pages to index and display.
HelpOS is a regional Lemmy network for Owen Sound, Grey County, and Grey-Bruce. Owen Sound and Grey County Reporter accounts publish local updates and council coverage there, so it’s a practical example of Lemmy supporting a local news workflow. You can browse it at https://helpos.ca/.
I wrote up the project history, including the subtree, ordered patches, and coordinated server and browser builds: https://liberit.ca/blog/keeping-a-customized-lemmy-interface-maintainable-through-upstream-updates.
The HelpOS checkout is currently based on Lemmy UI 0.19.15; validating the refresh against current upstream is the next step. If the approach would help another instance, I can publish a testable fork or prepare an upstream PR. Would either be useful to people migrating communities to Lemmy?
I run HelpOS and wrote the article.
Sources:
- Google on public Reddit content and Search: https://blog.google/company-news/inside-google/company-announcements/expanded-reddit-partnership/
- Google on AI Search features and site eligibility: https://developers.google.com/search/docs/appearance/ai-features
- Google on canonical URLs: https://developers.google.com/search/docs/crawling-indexing/canonicalization
- Google on sitemaps: https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap