Tag shows up in Tag list, but 404s when clicked

AI-generated summary

The discussion revolves around a tag named “circle.yml” that appears in the tag list but returns a 404 error when clicked. jerdog suspects the issue is due to the tag name having a file extension. JammyDodger notes that creating a similar tag on their test site automatically removes the full stop.

jerdog is unable to remove or edit the tag due to the 404 error. Stephen provides a solution via the rails console to either rename or destroy the tag. However, since jerdog is on a Discourse hosted plan, they will contact support to resolve the issue. Other broken tags with similar issues are also mentioned, including [2.0](https://discuss.circleci.com/tag/2.0), [php7.1](https://discuss.circleci.com/tag/php7.1), and [.net](https://discuss.circleci.com/tag/.net).

So we have a tag which we can’t select to see all the posts associated because it displays the 404 page every time.

My assumption is that is because it has a extension as the tag name (circle.yml), but I can’t remove it because the tag page for it doesn’t come up.

Is there any remedy for that?

I have tried to create a circle.yml tag on my test site to test out its limitations/workarounds, but it seems it will automatically change it to one without the full stop. Can I ask how you created this tag initially? That may point us to a way to edit it in the same manner.

Periods in tags have been disallowed for a while now. You can fix it via the rails console:

ssh in to your server, then:

cd /var/discourse
./launcher enter app
rails c
tag = Tag.find_by_name("circle.yml")

If you want to fix it, take the id returned from the above and substitute it into the ?? below. NEWNAME is whatever you want the fixed tag to be called.

Tag.where(id: ??).update(name: "NEWNAME")

Alternatively if you just want to destroy the tag click the text below, I’ve blurred it as some users have a habit of pasting blindly:

tag.destroy

edit:

Looks like these tags are also broken:

2.0
php7.1
.net

This is a legacy tag which was created likely before the fix.

We are on a Discourse hosted plan, so I’ll ping support to resolve. Thanks all.

doesn’t it show up on the /tags page? Ah yes, but you can’t edit it there..