thedevs-network/kutt-extension

Custom Domains not displaying

enoy19 opened this issue · 16 comments

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

You have to manually configure it in extension settings.

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

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.

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

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?

I've already set my custom host

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

image

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.

Please acknowledge the above scenarios if it is right.

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

If it didnt work still, i will check

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

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

same here, empty strings

image

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.

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>
  ); 
})}