Closed peetck closed 2 years ago
Hi! Thanks you for your contribution.
I was able to reproduce the issue locally. The issue however doesn't lie in the generateAppUrl
function itself but in the fact that the function is used here. So I submitted a fix in addition to some additional stories to test the behaviour.
in case like param value have
:
like this it will error ingenerateAppUrl()
.because our
location.pathname
will become/:someValue
and inuseCreateEventData()
we pass it togenerateAppUrl()
that will callgeneratePath()
like this.to fix it i think we just need
pathname
fromlocation.pathname
ingenerateAppUrl()
.sorry for my bad english 😄 .