Coder.comC
Coder.com2y ago
3 replies
Šimon Čecháček

Disable capital letters in workspace names

I am working on my issues with redirectsa and LFS on coder for months.

In there two days, it looks like i found the reason for both of them.


For the redirect, i found out that the variable data.coder_workspace.me.name that I use to construct the web preview URL to put into WordPress config like this:
weburl = "https://preview--main--${data.coder_workspace.me.name}--${data.coder_workspace.me.owner}.coder.domain.tld" is doing problem with capital letters.

When someone uses capital letters in the workspace, the WP site will end up in infinite loop from URL with capital letter to one without them,

Using capital letters in URLs is just not great, so is there a way to simple deny users of naming their workspaces with capital letters? We are already not letting them use spaces or special characters.
Was this page helpful?