You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When the original url has params in it the current resolveRedirect method is redirected to incorrect URL.
For ex:-
original url : https://example.com/?k1=v1&k2=v2&k3=v3
params : {
expiry : 300
}
expected redirected url = https://example.com/?k1=v1&k2=v2&k3=v3&expiry=300
actual redirected url = https://example.com/?k1=v1&k2=v2&k3=v3?expiry=300
To Reproduce
Steps to reproduce the behavior:
Create a shorten URL with original url having some query params
Add some params like expiry
Create the shorten URL
See the the url getting redirected.
Expected behavior
Correct URL should be like : https://example.com/?k1=v1&k2=v2&k3=v3&expiry=300
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]
Smartphone (please complete the following information):
Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
@Nazi-pikachu, You can quickly fix this by checking if the URL already contains query parameters. if not, then add ?k=v, or if it already has them then append it to existing parameters &k=v if it already contains it.
Describe the bug
When the original url has params in it the current resolveRedirect method is redirected to incorrect URL.
For ex:-
original url :
https://example.com/?k1=v1&k2=v2&k3=v3
params : {
expiry : 300
}
expected redirected url =
https://example.com/?k1=v1&k2=v2&k3=v3&expiry=300
actual redirected url =
https://example.com/?k1=v1&k2=v2&k3=v3?expiry=300
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Correct URL should be like :
https://example.com/?k1=v1&k2=v2&k3=v3&expiry=300
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: