Discourse doesn't like tags with dots

There are currently 3 tags using dots but the links don’t work:
last.fm
metabrainz.org
musicbrainz.org

@Freso can you please fix those? Otherwise I’d have to find the topics some other way and might hit the edit limit again. :smirk:

Apparently they were never intended to be supported:

1 Like

I’m looking into it. Seems like I can’t fix them from the GUI, but I’ll find a way!

7 Likes

Please @admins, if you know what and where the rails console is, could you rename the tag #last.fm to #lastfm?

There is a bug with tags with periods:

Oops! That page doesn’t exist or is private.

Here is how to do, apparently:

t = Tag.find_by_name("last.fm")
t.name = "lastfm"
t.save
2 Likes

I reported this a long time ago:

Bonus points to those who notice the time discrepancy of the post and ticket.

5 Likes

Ach, sorry @chaban, I forgot to search, I didn’t remember that. :sweat_smile:

Hi @Freso, I don’t know if you can merge this topic of mine, duplicate of chaban’s topic.

I got a reply to how to run their batch tag rename command:

Backup Discourse database :question:

Connect to the server with ssh

Launch rails console

cd /var/discourse
./launcher enter app
rails c

Run the batch tag rename command

t = Tag.find_by_name("last.fm")
t.name = "lastfm"
t.save

@zas Is this something you can do? I don’t think I have server access to be able to access the rails console myself.

1 Like

I renamed following tags:

“last.fm” couldn’t be renamed to “lastfm” because this tag name already exists, so I rename it to “last-fm”.

4 Likes

Thanks very much!
Then I moved those 3 topics from #last-fm to #lastfm, where they now are together with the existing previous topic, nice and clean. :):+1:

3 Likes