vh13294 / nestjs-url-generator

Dynamically generating & signing URL based on controller method reference.
MIT License
44 stars 17 forks source link

Random query parameters #12

Open MatissAndersons opened 2 years ago

MatissAndersons commented 2 years ago

Thanks for the cool library, been using it a lot!

I ran into an issue today. When signed links are passed to Gmail, or I can imagine almost any marketing platform, they tend to append some tracking query parameters. For instance, utm_source, utm_medium, etc. And they're kinda unpredictable. Do you have any suggestions of how this could be fixed?

Currently I just find the signed={signature} in the url and remove everything after that. However, that feels very much like a quickfix and I can imagine that could break if a platform would prepend the query instead. Do you maybe have a better idea of how to check the signature validity when you can't predict the query entirely?

Thanks!