# Formatação e acentos em URLs

**URL:** https://meta.discourse.org/t/formatting-and-accents-in-urls/215734
**Category:** Support
**Created:** [23 Janeiro , 2022 19:27 UTC](https://meta.discourse.org/t/formatting-and-accents-in-urls/215734 "2022-01-23T19:27:56Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![saquetim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saquetim/32/116400_2.png) [@saquetim](https://meta.discourse.org/u/saquetim)
#### Post date: [24 Janeiro , 2022 17:17 UTC](https://meta.discourse.org/t/formatting-and-accents-in-urls/215734/7 "2022-01-24T17:17:19Z")

</div>

@Falco,

Tive o mesmo problema.

> [@404 when trying to edit category with accent in slug](https://meta.discourse.org/t/404-when-trying-to-edit-category-with-accent-in-slug/214762):
>
> Hi, I’ve accidentally created a new category with an accent in the slug and the settings below. After creating this category, clicking on the “Edit Button” in the new category was redirecting to the 404 page. =\> #\<Category:0x00005624cbc90838 id: 182, name: "Sugestões", color: "F7941D", topic\_id: 257800, topic\_count: 0, created\_at: Thu, 13 Jan 2022 16:11:40.677256000 UTC +00:00, updated\_at: Thu, 13 Jan 2022 16:11:40.677256000 UTC +00:00, user\_id: 2, topics\_year: 0, topics\_month: 0, to…

O `método de geração de slug` está definido como `ascii`, mas eu acidentalmente digitei o slug com um acento. Depois disso, não consegui mais acessar a página de edição da categoria.

No final, resolvi o problema entrando no console do Rails e corrigindo o slug lá.

Não é totalmente culpa do Discourse, pois isso depende do usuário digitar um acento onde não deveria haver um. Mas seria legal se o sistema verificasse se o slug digitado tem apenas caracteres ASCII se o `método de geração de slug` estiver definido como `ascii`.

---

_[View the full topic](https://meta.discourse.org/t/formatting-and-accents-in-urls/215734)._
