Skip to content
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

Custom Domains not displaying #119

Open
enoy19 opened this issue Jul 16, 2021 · 16 comments
Open

Custom Domains not displaying #119

enoy19 opened this issue Jul 16, 2021 · 16 comments
Labels
status: awaiting author response Additional information has been requested from the author type: question or discussion Issue discussing or asking a question

Comments

@enoy19
Copy link

enoy19 commented Jul 16, 2021

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

@abhijithvijayan
Copy link
Member

abhijithvijayan commented Jul 16, 2021

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 abhijithvijayan added status: awaiting author response Additional information has been requested from the author type: question or discussion Issue discussing or asking a question labels Jul 16, 2021
@enoy19
Copy link
Author

enoy19 commented Jul 16, 2021

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.

@abhijithvijayan
Copy link
Member

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

@enoy19
Copy link
Author

enoy19 commented Jul 16, 2021

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
Copy link
Author

enoy19 commented Jul 16, 2021

image

@enoy19
Copy link
Author

enoy19 commented Jul 16, 2021

I've already set my custom host

@enoy19
Copy link
Author

enoy19 commented Jul 16, 2021

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

image

@abhijithvijayan
Copy link
Member

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
Copy link
Member

Please acknowledge the above scenarios if it is right.

@abhijithvijayan
Copy link
Member

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

If it didnt work still, i will check

@enoy19
Copy link
Author

enoy19 commented Jul 16, 2021

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
Copy link
Author

enoy19 commented Jul 16, 2021

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

@eazyAlf
Copy link

eazyAlf commented Jul 17, 2021

same here, empty strings

image

@abhijithvijayan
Copy link
Member

abhijithvijayan commented Jul 17, 2021

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
Copy link
Member

abhijithvijayan commented Jul 18, 2021

@enoy19

@eazyAlf

@mimalef70
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: awaiting author response Additional information has been requested from the author type: question or discussion Issue discussing or asking a question
Projects
None yet
Development

No branches or pull requests

4 participants