fridays / next-routes

Universal dynamic routes for Next.js
MIT License
2.47k stars 230 forks source link

Navigation is stripping UTM parameters from the url #154

Closed edelfrade closed 6 years ago

edelfrade commented 6 years ago

When a user arrives to the site via a link with utm tags and then navigates internally with <Link route={internal-page/} /> This tags are removed. Is there a way to keep these other than adding them to the route?

UTM_tags: ?utm_source=Test&utm_medium=Test&utm_campaign=Test&utm_term=Test&utm_content=Test

davidungio commented 6 years ago

@ernerock Did you find a way to keep the parameters from being stripped?

edelfrade commented 6 years ago

@davidungio No, I don't think there's a way to do it currently. I however was able to track the session in analytics even after the tags were stripped which is why I closed the issue.

davidungio commented 6 years ago

@ernerock thanks for the response. @fridays any word of in there is a way to go about not stripping existing parameters on route changes?