@jonatandor35 Okay I just edit the repla c ce into replace but I still got error 404 like this
I want to redirect to EgAsM7 #1 not just EgAsM7 because I have numbers after #
Is ther is a replacment for this ?
@jonatandor35 Okay I just edit the repla c ce into replace but I still got error 404 like this
Is ther is a replacment for this ?
@eyadkhfarah It’s not clear whether you have a dynamic page that its path contains a # sign encoded as %23%0A (that’s not a good idea) or you use a URL hash .
If the first one is what you meant then try to put the input inside:
encodeURI()
Where can I put encodeURL() in the code panel
let destination = "EgAsM7#1";
wixLocation.to("/" + encodeURI(destination));
It is encodeUR I not encodeUR L
Okay it’s work thank you so much and I sorry for bothering you, by your helping you solved one of my biggest problem since I was started web design thank you so much
@eyadkhfarah you’re welcome.
I still recommend to avoid using title with # for dynamic page URL. It might lead to problems. For example, after you got redirected to this dynamic page, if you refresh the browser, you might get 404 again.
@jonatandor35 I am facing the similar problem
I am not able to redirect to a dynamic URL which consist of user inputs.
export function button44_click(event)
{ $w(" #button44 “).link = “Share on WhatsApp” + “91” + $w(” #input10 “).value + “&text=Thank%20You%20for%10Shopping%20EID%20your%20Bill%20is%20” + $w(” #input16 “).value + “%20Your%20Bill%20Number%20is%20” + $w(” #input11 ").value + “%20Keep%20it%20for%20future%20references”; //Add your code for this event here: }
problem is i want to navigate a button to a dynamic Link whose URL is generated by USER INPUTS.
export function button44_click(event)
{ $w(" #button44 “).link = “https://www.xyz.com/send?phone=” + “91” + $w(” #input10 “).value + “&text=Thank YOU” + $w(” #input16 “).value + “%PLEASE HELP” + $w(” #input11 ").value + “PLEASE”; //Add your code for this event here: }
@shatriyaes Please observe the Community Guidelines and do not post the same question in multiple threads. See the answers to your original post.
@yisrael-wix for my post static link was answered but for dynamic link it was not answered.
My concern is regarding same redirecting to dynamic link.
Help is really appreciated.
As per Community Guidelines
Above all, be kind. Remember that everyone was once a coding newbie.
@shatriyaes Well, the link you posted is to yet another (third) place that you’ve asked the same question.
Did you see the answers in this other thread of yours ?