Request URL not receiving anchor link in the text when sent via slash commands
See original GitHub issueDescription
Request URL (The URL to request when the slash command is run) not receiving anchor link in the text when sent via slash commands
- Using slash command, i’m sending a text with anchor link say “test link”
- But to my request URL, I’m just receiving “test link” not the anchored hyperlink https://github.com/
What type of issue is this? (place an x
in one of the [ ]
)
- bug
- enhancement (feature request)
- question
- documentation related
- testing related
- discussion
Requirements (place an x
in each of the [ ]
)
- I’ve read and understood the Contributing guidelines and have done my best effort to follow them.
- I’ve read and agree to the Code of Conduct.
- I’ve searched for any related issues and avoided creating a duplicate issue.
Steps to reproduce:
- Configure a slash command with a request URL
- Send a message using that slash command with some anchor link
- Check you are receiving the message in the request url, without the hyperlink anchored
Expected result:
Anchored hyperlink should be sent along with the text i sent
Actual result:
Anchored hyperlink is not sent to my request url, only the text is sent
Attachments:
this is coming to my request url as “this is a link test”
Couldn’t find any proper documentation as well with this scenario as well.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
<a> link not working by clicking, only work by "Open link in ...
You have some javascript code which is preventing the default action of the anchor tag to be executed. You could inspect the Network...
Read more >Formatting text for app surfaces - Slack API
A guide to using the mrkdwn syntax for your app-published text in messages, modals, and tabs.
Read more ><a>: The Anchor element - HTML: HyperText Markup Language
A space-separated list of URLs. When the link is followed, the browser will send POST requests with the body PING to the URLs....
Read more >Add links to text – Figma Help Center
Linking to default email clients using HTML like mailto: is not supported at this time. Create a link. You can add a link...
Read more >urlencode - Manual - PHP
This function is convenient when encoding a string to be used in a query part of a URL, as a convenient way to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@vilvasri-subramanian Thanks for double-checking the escape setting for me!
I’ve recreated your issue locally and can confirm that I’m experiencing the same issue.
While recreating the issue, I noticed that the Slack API response does not escape embedded links (like this one). However, it does escape raw links (e.g. https://github.com).
Next up ⏭️ I’m going to look into whether this is a documentation mistake or a known bug with the Slack API slash command request.
I’ll get back to you shortly!
@mwbrooks I tried with & without “escaping links” enabled. In both the cases, i cant see the anchored hyperlink