publikator-frontend
publikator-frontend copied to clipboard
Warn about Link URLs with Tracking Params or Paywall Redirects
Extend current URL validation to also warn about any utm params and abo.nzz.ch redirects.
Extend here: https://github.com/orbiting/publikator-frontend/blob/a9ab02188b8b66cafaeae91563a2bd3874ecac25/components/Publication/useValidation.js#L21-L59
Maybe you could use the rules from Neat URL to strip tracking params :)
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