question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Request URL not receiving anchor link in the text when sent via slash commands

See original GitHub issue

Description

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:

  1. Configure a slash command with a request URL
  2. Send a message using that slash command with some anchor link
  3. 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:

image

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:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
mwbrookscommented, Sep 3, 2020

@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!

2reactions
vilvasri-subramaniancommented, Sep 3, 2020

@mwbrooks I tried with & without “escaping links” enabled. In both the cases, i cant see the anchored hyperlink

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found