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

Cannot get to the URL or ID of a Flow Webhook Trigger #21616

Open
st11x opened this issue Feb 28, 2024 · 6 comments
Open

Cannot get to the URL or ID of a Flow Webhook Trigger #21616

st11x opened this issue Feb 28, 2024 · 6 comments

Comments

@st11x
Copy link

st11x commented Feb 28, 2024

Describe the Bug

When I create a webhook Flow trigger, the URL to that trigger is shown with ellipsis but there is nowhere to copy the full URL.

image

The documentation talks about a webhook trigger panel and I suppose that is it.

image

Workaround: I could use the browser inspect tool to get the URL. And since the ID is in the browser, I can deduce the URL to the webhook.

To Reproduce

Create a Flows Webhook trigger

Directus Version

10.9.3

Hosting Strategy

Self-Hosted (Docker Image)

@azrikahar
Copy link
Contributor

That's odd indeed. The copy button should appear on the right of the URL, as seen here:

image

as well as the screenshot in the docs.

That being said, the button does check whether your browser currently supports copying to clipboard (or has the permission to do so) as seen with the isCopySupported:

<v-icon
v-if="isCopySupported && copyable"
name="content_copy"
small
clickable
class="clipboard-icon"
@click="copyToClipboard(text)"
/>

const isCopySupported = computed(() => {
return !!navigator?.clipboard?.writeText;
});

Can you check whether copying to clipboard is allowed in your current browser? or perhaps checking with another browser as well?

Closing this for now as I believe it's a browser permission issue, but if it still persists with the necessary permission, let's reopen this and investigate further.

@azrikahar azrikahar closed this as not planned Won't fix, can't repro, duplicate, stale Feb 29, 2024
@st11x
Copy link
Author

st11x commented Feb 29, 2024

I have checked Edge/Chrome on Win 11, both regular and incognito. I have also checked that on Safari on the iPad. All of them are missing that icon.

Copy permission is good. I can select and copy all the visible parts of the URL minus the ellipsis.

@paescuj
Copy link
Member

paescuj commented Feb 29, 2024

Do you access the page over HTTP and non-localhost domain?
The copy action is only allowed over HTTPS or via HTTP when the domain is 127.0.0.1/localhost.

@st11x
Copy link
Author

st11x commented Feb 29, 2024

Yes it is over http. I had suspected that originally but wasn't sure. Thanks.

@paescuj
Copy link
Member

paescuj commented Feb 29, 2024

That being said, I think we should provide an alternative way for users to see the full URL. At least in form of a tooltip (v-text-overflow).
Therefore, I'm reopening this issue so we can address this as a small UI improvement 👍

@FutureBuddha
Copy link

i use brave browser, directus 10.10.7 and the same situation
image
is there already something done to get the url or the id, except out of the url to get the id?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📋 Backlog
Development

No branches or pull requests

5 participants