Alfred-Workflows icon indicating copy to clipboard operation
Alfred-Workflows copied to clipboard

shorter doesn't short wikipedia links

Open ryanthara opened this issue 8 years ago • 3 comments

Hello. First, I want to say thank you for sharing your workflows.

I try to short the following link: https://de.wikipedia.org/wiki/Zurück_in_die_Zukunft#Der_Fluxkompensator

shorturl shows as result the search window with google, amazon and wikipedia.

shorturl

Is there a solution to short this urls?

ryanthara avatar May 05 '16 07:05 ryanthara

Try to use %23 instead of # like this https://de.wikipedia.org/wiki/Zurück_in_die_Zukunft%23Der_Fluxkompensator

hzlzh avatar May 06 '16 17:05 hzlzh

Good idea. I tested it and it still works in safari, but the # sign (anchor on a website) comes from the wikipedia website and is in all web browsers the same. My coding experience with python is nearly 0 - so would it be possible to do this with a regex for wikipedia (and maybe other) websites?

ryanthara avatar May 06 '16 17:05 ryanthara

Yes, I will fix it since Alfred v3 is coming soon.

hzlzh avatar May 06 '16 18:05 hzlzh