Jump to content

use anchor-links / prevent ASCI-Encoding

Recommended Posts

I try to create a workflow, that lists search_results and opens the relevant gitlab-markdown script on select. Therefore I want to use link-anchors to jump to the correct section in the markdown file. Therefore I used something like:



However my link aws.md#s3 gets replaced with the ASCI-Encoding (https://www.w3schools.com/tags/ref_urlencode.asp) when used by the "open url"-step, so in this case: aws.md%23s3. This format does not work on gitlab. How can I prevent the replacement of # with %23?

Edited by nikffm

Share this post

Link to post

It has nothing to do with ASCII. Alfred is URL-encoding your arg, as it has no way of knowing whether your input is already correctly encoded or not.


The solution is to not use the Open URL action. Instead, use a normal Run Script action (Language = /bin/bash, with input as argv) with the following content:

open "$1"

Share this post

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...