publikator-frontend icon indicating copy to clipboard operation
publikator-frontend copied to clipboard

Warn about Link URLs with Tracking Params or Paywall Redirects

Open tpreusse opened this issue 3 years ago • 3 comments

Input from Dialog

Extend current URL validation to also warn about any utm params and abo.nzz.ch redirects.

tpreusse avatar Aug 28 '20 09:08 tpreusse

Extend here: https://github.com/orbiting/publikator-frontend/blob/a9ab02188b8b66cafaeae91563a2bd3874ecac25/components/Publication/useValidation.js#L21-L59

tpreusse avatar Aug 28 '20 09:08 tpreusse

Maybe you could use the rules from Neat URL to strip tracking params :)

salim-b avatar Aug 28 '20 14:08 salim-b

There is an NPM package, also called neat-url. It was not updated since a year and is using the depricated URL.parse(). But the code is pretty straight forward https://gitlab.com/Cyprias/neat-url/-/blob/master/src/index.js

caillou avatar Sep 18 '20 09:09 caillou