Falco
(Falco)
March 17, 2026, 8:40pm
69
Slaune:
→ Instead of loading the full forum, it crawls the embedUrl, gets redirected (my platform requires login), and creates a junk topic with the redirect URL as the title.
Thanks heaps for the report @Slaune , I managed to repro and fix it now
main ← fix/embed-blank-slug-redirect-loop
merged 06:37PM - 17 Mar 26 UTC
## Summary
Follow-up to #36613 (full Ember app embed mode).
When an embedd… ed page's title can't be parsed by `ruby-readability`, `TopicEmbed.import` creates a topic with a blank title and slug. This causes:
- **Redirect loop**: `Topic.url` generates `/t//123` (double slash), and `TopicsController#show` endlessly redirects trying to add the missing slug
- **Broken topic**: The topic has no title or meaningful content
### Changes
- **`topic_embed.rb`**: Fall back to the embed URL as the topic title when the parsed title is blank
- **`topic.rb`**: `Topic.url` omits the slug segment when slug is blank (`/t/123` instead of `/t//123`)
- **`topics_controller.rb`**: Skip canonical slug redirect when the topic has no slug (nothing to redirect to)
4 Likes
Falco
(Falco)
March 25, 2026, 1:00pm
70
@here We swapped our blog comments to this new system!
See it live at any post, like Understanding Discourse Trust Levels , It’s Time We Talked About Tags or Introducing Discourse AI .
We are still adjusting the experience, first with a small theme component here on Meta and then will merge what makes sense as a default into core.
Eager to hear your feedback on this.
14 Likes
Wow, fully embedded native Topics with working progress bar navigation? Nice!
The only critiques I have is that I’m seeing a mix between light and dark theme? And the padding could do with some love?
7 Likes
Falco
(Falco)
March 25, 2026, 1:19pm
72
Yes, we are adding forced light mode in our Meta theme-component as this instance is very liberal on color schemes. I had my profile set to use the dark color scheme even on the light mode, but after fixing that on my profile it is looking better.
100%, there are still places to fix, specially in our own branded theme.
5 Likes