-
Notifications
You must be signed in to change notification settings - Fork 404
Using --alias
with invalid characters "slugifies" the string in the shell but sends the characters unchanged to Deploy.subdomain_alias
.
#969
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is an issue with our API, I opened an issue for it internally. It looks like the CLI should not slugify the |
I've hit this issue now as well but regarding upper-case letters. |
@HugoGranstrom, "slugify" meaning "to take a string and make it suitable to be used as a slug". The definition of "slug" itself can be found here: https://en.wikipedia.org/wiki/Clean_URL#Slug Our slugs (which is also true of most but not all slugs) are always lowercase. It won't be possible to use mixed case slugs. We could request a feature request for this but I'm 100% certain that our service will never be able to support mixed case slugs. In other words, I'm 100% sure the feature request will never get made. So, it may be helpful to ask: "Why am I 100% sure we won't support mixed case slugs?" I'm sure because, to support them, we would need to differentiate between cases at the DNS level. We would need to treat To summarize, a mixed case slug won't happen because the slugs get used for subdomains and DNS has no concept of uppercase or lowercase. Also, please be warned that the There is an open feature request for true branch subdomain support with manual deploys here: #1572. |
@overlordofmu Thank you sincerely for your answer :D
If this is the case, why isn't this limitation documented anywhere? I expected Netlify CLI to at least tell me that something was wrong about my
I'm totally fine with it overwriting the last instance and I have no need for |
- Do you want to request a feature or report a bug?
A bug.
- What is the current behavior?
When using
--alias
to create a custom subdomain for a deploy, characters which would be invalid for a domain name are "slugified" in the shell URL but the database is still getting the unmodified string.- If the current behavior is a bug, please provide the steps to reproduce.
Here is an example deploy:
However, if I check the actual content of
Deploy.subdomain_alias
it is"not/working"
instead ofnot-working
. The URL in the deploy above does not work: https://not-working--netlify-cli-manual-deploys.netlify.app- What is the expected behavior?
That the same "slugified" string shown in the shell command output be used for the
subdomain_alias
value and the given URL in the shell will then work.- Local Environment Information
The text was updated successfully, but these errors were encountered: