finicky icon indicating copy to clipboard operation
finicky copied to clipboard

Documentation for URL shorteners in v4

Open unikitty37 opened this issue 4 months ago • 3 comments

#117 was resolved by adding documentation for URL shorteners to the wiki, but this doesn't seem to have made it across to v4. The closest I can find is the mention of URL interfaces in the migration guide, but the link there just resolves to the root of MDN so it's not particularly helpful…

Could docs for handling URL shorteners in v4 be added to the wiki, please?

In particular, I'd like to know if this is possible:

  1. All URLs that start with https://javascriptweekly.com/link/ are treated as being a shortener-based link, and expanded.
  2. All URLs that started with https://javascriptweekly.com/link/ before being expanded are opened in Orion.
  3. All URLs, whether from a shortener or not, that end up at https://m.wikipedia.org/… are redirected to https://en.wikipedia.org/….

My reading of the v3 docs is that you could either add https://javascriptweekly.com/link/ to urlShorteners and get items 1 and 3, but not 2, or not add it to urlShorteners and get item 2, but not 1 and 3. (I literally just discovered Finicky yesterday, so I've not actually used v3 :)

unikitty37 avatar Aug 29 '25 11:08 unikitty37

url shortening works on a domain basis, checking for domains that end in the provided domain, so e.g. www.example.com would be a match if example.com is defined as a url shortener domain. It ignores any path defined.

The final url is resolved before passing it to any matcher you have configured.

You are correct, 2 isn't currently possible, since the original url is not passed to the matchers.

johnste avatar Sep 21 '25 18:09 johnste

Thanks, but searching https://github.com/johnste/finicky/wiki/Configuration-(v4) for "short" produces no results. Does it still work the same way as in v3?

Unfortunately, I do need to be able to get the original URL, as Velja (which I'm currently using) has the same limitation, and the main reason I'm looking to move is to get that functionality. Would it be better if I created a new issue with the feature request, or just changed the title of this one?

unikitty37 avatar Sep 22 '25 09:09 unikitty37

Sorry for the delay. You can change the title of this one.

johnste avatar Oct 12 '25 18:10 johnste