How to set repl "titles"

Question:
So apparently, from the URL and the cover page, the C++ Template is called “CPlusPlus”, but when I create a new template of it, it’s called “C++”. I’m wondering, how do I do that?

Screenshots, links, or other helpful context:

1 Like

Maybe because the author of this replit template, the creator of this universe (site). He/they can change the site, because they have its source code. This is my guess, nothing more.

2 Likes

This may be a bug, possibly related to not wanting to put ++ in a URL (some characters are wonky in Replit URLs). Maybe Replit made the URL say PlusPlus and it glitched that into the title? Regardless, I don’t think you’re supposed to be able to make a template that changes names upon being forked.

2 Likes

Yeah, that’s what I’m thinking. Like how if you put spaces in your name they turn to dashes. So maybe they just have a map/list of these autocorrections, like:

...
 -> -
ã -> a
+ -> Plus
...

Unless making a name with a + doesn’t do this. Then idk

Nevermind, yeah it just omits it.

2 Likes

Perhaps they set the title, and then changed it and somehow that makes it show up in certain places?

Because when you make an HTML/CSS/JS Repl called let’s say, abcdef, and then change the name to fedcba or anything else, then both abcdef.username.repl.co and fedcba.username.repl.co work for your website, so maybe similar to what happens here? (Like template card names still use the old name or something

1 Like

That’s be related to URL encoding, certain characters have special meaning in URLs, so they can’t use them, you can test this in your browser console by running encodeURIcomponent("random chars Uu76&-_+(;") and seeing if they stay the same or are changed.

2 Likes

Well, Replit doesn’t encode the URLs. They instead replace the characters that would mess it up with regular characters. (Examples include a dash for a space, a plain letter for an accented one, etc.)

1 Like

Yes, but what I am saying is that the reason they have to remove certain characters is partly because of the ways URLs work, otherwise they may be read incorrectly. It’s also partly because in a file system there are certain characters that cannot be in a folder (or file)'s name.

3 Likes

Some of the characters they remove can be URL Encoded safely, but they’re still stripped from the Repl URL. Also, any case of -s longer than one is shrunk to just one -.

2 Likes