XModPro

Replace in URL join string

Mark Trippier Mark Trippier asked Oct 3, 2018
Active Oct 3 · Viewed 2598 times
<p>Hi, </p> <p>I have the following string to redirect to after an update of a form. </p> <p>If the user puts a space in the content_name field it fails, e.g. ("my name") - what I want to do is replace all spaces with "%20" (percentsign twenty) e.g. ("my%20name") as the link will then work. I cant fathom out how to resolve this, can anyone help me? </p> <p>The update button looks similar to the code below: </p> <p>&lt;UpdateButton Text="Update &amp; Edit Template" type="button" class="btn btn-primary btn-xs" Redirect="http://websiteaddress/[[Join([[CONTENT_NAME]])]]/" target="_blank" /&gt; </p> <p>Many thanks for any help. </p> <p>Mark<br> </p> <p><updatebutton text="Update &amp; Edit Template" type="button" class="btn btn-primary btn-xs" redirect="http://templates.legitemail.co.uk/mosaico/editor/[[Join([[CreateUser_sec]])]]/[[Join([[CREATEUSERID]])]]/[[Join([[CONTENT_NAME]])]]/generictemplate/[[Join([[CONTENTID]])]]/" target="_blank"></updatebutton> </p>

1 Answer

Loading answers...