# Embed URL Inconsistencies in Discourse

**URL:** https://meta.discourse.org/t/embed-url-inconsistencies-in-discourse/392552
**Category:** Support
**Tags:** embedding, wordpress
**Created:** [January 2, 2026, 4:55pm UTC](https://meta.discourse.org/t/embed-url-inconsistencies-in-discourse/392552 "2026-01-02T16:55:44Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![Thiago\_Mobilon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thiago_mobilon/32/177756_2.png) [@Thiago\_Mobilon](https://meta.discourse.org/u/Thiago_Mobilon)
#### Post date: [January 2, 2026, 4:55pm UTC](https://meta.discourse.org/t/embed-url-inconsistencies-in-discourse/392552/1 "2026-01-02T16:55:44Z")

</div>

Continuing the discussion from [“Show Full Post” button doesn’t work in subfolder installations](https://meta.discourse.org/t/show-full-post-button-doesnt-work-in-subfolder-installations/390811/29):

@angus mentioned that Discourse is removing the trailing slash from the end of the Embed URL, to avoid some conflicts.

So now `https://domain.com/path-to-url/` is saved as `https://domain.com/path-to-url`.

In my opinion, this leads to more inconsistencies. If i try to check the API, to get the topic ID of an embed URL, i can’t find it because of the trailing slash. Discourse returns a 404 page.

But if i remove the trailing slash, it returns the value:

```plaintext
mobilon@Thiagos-MacBook-Pro ~ % curl 'https://tecnoblog.net/comunidade/embed/info?embed_url=https://tecnoblog.net/noticias/anatel-e-receita-apreendem-quase-meio-milhao-de-produtos-em-santa-catarina/' -H 'API-KEY: <API KEY>' -H 'API-USERNAME: <USERNAME>'

<!DOCTYPE html>

<html lang="pt-BR">

<head>

  <meta charset="utf-8">

  <title>Página não encontrada - Tecnoblog Comunidade</title>

```

```plaintext
mobilon@Thiagos-MacBook-Pro ~ % curl 'https://tecnoblog.net/comunidade/embed/info?embed_url=https://tecnoblog.net/noticias/anatel-e-receita-apreendem-quase-meio-milhao-de-produtos-em-santa-catarina' -H 'API-KEY: <API KEY>' -H 'API-USERNAME: <USERNAME>' 

{"topic_id":157645,"post_id":484103,"topic_slug":"anatel-e-receita-apreendem-quase-meio-milhao-de-produtos-em-santa-catarina-tecnoblog","comment_count":15}%     

```

To be able to find the correct topic, i would need to use str replace in wordpress, to remove the trailing slash of the permalink, before checking the api. It makes no sense, since the canonical URL actually has the trailing slash…

In other words, it’s like Discourse is normalizing the permalink to a URL that doesn’t exist.

---

_[View the full topic](https://meta.discourse.org/t/embed-url-inconsistencies-in-discourse/392552)._
