kutt-extension icon indicating copy to clipboard operation
kutt-extension copied to clipboard

Custom Domains not displaying

Open enoy19 opened this issue 4 years ago • 16 comments

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

enoy19 avatar Jul 16 '21 11:07 enoy19

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 avatar Jul 16 '21 11:07 abhijithvijayan

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 avatar Jul 16 '21 11:07 enoy19

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

abhijithvijayan avatar Jul 16 '21 11:07 abhijithvijayan

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 avatar Jul 16 '21 11:07 enoy19

image

enoy19 avatar Jul 16 '21 11:07 enoy19

I've already set my custom host

enoy19 avatar Jul 16 '21 11:07 enoy19

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

image

enoy19 avatar Jul 16 '21 11:07 enoy19

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 avatar Jul 16 '21 11:07 abhijithvijayan

Please acknowledge the above scenarios if it is right.

abhijithvijayan avatar Jul 16 '21 11:07 abhijithvijayan

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

If it didnt work still, i will check

abhijithvijayan avatar Jul 16 '21 11:07 abhijithvijayan

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 avatar Jul 16 '21 12:07 enoy19

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

enoy19 avatar Jul 16 '21 12:07 enoy19

same here, empty strings

image

eazyAlf avatar Jul 17 '21 13:07 eazyAlf

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 avatar Jul 17 '21 14:07 abhijithvijayan

@enoy19

@eazyAlf

abhijithvijayan avatar Jul 18 '21 05:07 abhijithvijayan

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 avatar Jul 19 '21 15:07 mimalef70