Custom Domains not displaying #6

Closed
opened 2026-01-19 18:31:52 +00:00 by michael · 17 comments
Owner

Originally created by @enoy19 on GitHub.

The custom domains are not shown in the Dropdown.
I am hosting Kutt myself on the latest docker image.
image
image

Originally created by @enoy19 on GitHub. The custom domains are not shown in the Dropdown. I am hosting Kutt myself on the latest docker image. ![image](https://user-images.githubusercontent.com/24529735/125940798-85993339-a03b-42e5-97d7-677f89a7197b.png) ![image](https://user-images.githubusercontent.com/24529735/125940858-d4c09bfd-9ea2-466c-8967-b2669a00e2f5.png)
michael added the status: awaiting author responsetype: question or discussion labels 2026-01-19 18:31:52 +00:00
Author
Owner

@abhijithvijayan commented on GitHub:

You have to manually configure it in extension settings.

Just enable advance mode(in extension settings) and type in the custom domain. Thats it.

@abhijithvijayan commented on GitHub: You have to manually configure it in extension settings. Just enable advance mode(in extension settings) and type in the custom domain. Thats it.
Author
Owner

@enoy19 commented on GitHub:

thanks for the rapid answer. I configured my kutt server in the advanced options.
the problem is that the custom domains are invisible / "empty strings" in the dropdown.

@enoy19 commented on GitHub: thanks for the rapid answer. I configured my kutt server in the advanced options. the problem is that the custom domains are invisible / "empty strings" in the dropdown.
Author
Owner

@enoy19 commented on GitHub:

image

@enoy19 commented on GitHub: ![image](https://user-images.githubusercontent.com/24529735/125942237-859eed8d-dd8e-4133-84f7-c7098850e7e1.png)
Author
Owner

@abhijithvijayan commented on GitHub:

Try going to the extension settings page and see if the domain is still shown there.

@abhijithvijayan commented on GitHub: Try going to the extension settings page and see if the domain is still shown there.
Author
Owner

@enoy19 commented on GitHub:

my kutt works with 4 different domains.
the default one and 3 extra.
Do I need to reconfigure it to use one of the 3 custom domains?
isnt that what the dropdown is for?

@enoy19 commented on GitHub: my kutt works with 4 different domains. the default one and 3 extra. Do I need to reconfigure it to use one of the 3 custom domains? isnt that what the dropdown is for?
Author
Owner

@abhijithvijayan commented on GitHub:

Please acknowledge the above scenarios if it is right.

@abhijithvijayan commented on GitHub: Please acknowledge the above scenarios if it is right.
Author
Owner

@enoy19 commented on GitHub:

I am able to create a link but I have to guess which one is the correct custom domain.

image

@enoy19 commented on GitHub: I am able to create a link but I have to guess which one is the correct custom domain. ![image](https://user-images.githubusercontent.com/24529735/125942486-6935e252-b41f-450b-98b6-8343238385c7.png)
Author
Owner

@abhijithvijayan commented on GitHub:

So the only problem now is, you are seeing empty strings in the dropdown for all the domains you have configured, right?

And you are able to shorten using all the custom domains.

I will look into this later.

@abhijithvijayan commented on GitHub: So the only problem now is, you are seeing empty strings in the dropdown for all the domains you have configured, right? And you are able to shorten using all the custom domains. I will look into this later.
Author
Owner

@abhijithvijayan commented on GitHub:

Try validating the key once again or press the refresh icon in popup,

If it didnt work still, i will check

@abhijithvijayan commented on GitHub: Try validating the key once again or press the refresh icon in popup, If it didnt work still, i will check
Author
Owner

@enoy19 commented on GitHub:

I've already set my custom host

@enoy19 commented on GitHub: I've already set my **custom host**
Author
Owner

@abhijithvijayan commented on GitHub:

Can you share a disposable credentials(api key & custom domain) for me to debug these?

Currently I dont have a custom host setup with custom domains.

@abhijithvijayan commented on GitHub: Can you share a disposable credentials(api key & custom domain) for me to debug these? Currently I dont have a custom host setup with custom domains.
Author
Owner

@enoy19 commented on GitHub:

So the only problem now is, you are seeing empty strings in the dropdown for all the domains you have configured, right?

And you are able to shorten using all the custom domains.

I will look into this later.

correct

@enoy19 commented on GitHub: > So the only problem now is, you are seeing empty strings in the dropdown for all the domains you have configured, right? > > And you are able to shorten using all the custom domains. > > I will look into this later. correct
Author
Owner

@enoy19 commented on GitHub:

I tried refreshing but it didn't work. I also tried restarting chrome. didn't work either

@enoy19 commented on GitHub: I tried refreshing but it didn't work. I also tried restarting chrome. didn't work either
Author
Owner

@eazyAlf commented on GitHub:

same here, empty strings

image

@eazyAlf commented on GitHub: same here, empty strings ![image](https://user-images.githubusercontent.com/58122515/126039128-f11b3d23-702d-4d0b-9032-55c487009c3d.png)
Author
Owner

@abhijithvijayan commented on GitHub:

@enoy19

@eazyAlf

@abhijithvijayan commented on GitHub: @enoy19 @eazyAlf
Author
Owner

@mimalef70 commented on GitHub:

I fix this issue, it's because you use {option} to the select box;
I fix this with this code in line 225 ( Form.tsx )

{domainOptions.map(({id, value, disabled = false}) => {
  return (
    <option
      tw="bg-gray-200 "
      value={value}
      disabled={disabled}
      key={id}
    >
      {value.replace(/^(?:https?:\/\/)?(?:www\.)?/i, "").split('/')[0]}
    </option>
  ); 
})}
@mimalef70 commented on GitHub: I fix this issue, it's because you use {option} to the select box; I fix this with this code in line 225 ( Form.tsx ) ``` {domainOptions.map(({id, value, disabled = false}) => { return ( <option tw="bg-gray-200 " value={value} disabled={disabled} key={id} > {value.replace(/^(?:https?:\/\/)?(?:www\.)?/i, "").split('/')[0]} </option> ); })} ```
Author
Owner

@abhijithvijayan commented on GitHub:

Thanks @mimalef70. Unfortunately i couldnt replicate this so i have kept an implementation similar to yours as a fallback in this commit 85586530a8

In the next version of extension, this should be resolved.

@abhijithvijayan commented on GitHub: Thanks @mimalef70. Unfortunately i couldnt replicate this so i have kept an implementation similar to yours as a fallback in this commit https://github.com/thedevs-network/kutt-extension/pull/138/commits/85586530a86852558f6035cd879faf49820af134 In the next version of extension, this should be resolved.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: thedevs-network/kutt-extension#6