Return URL for a flow not returning the full URL

I am creating a button to launch a flow and then return to the same page the launched the flow,  The flow  The flow works just fine , but the return URL is not getting created correctly.    
The Button:

The Text:

The end result for the retURL is https://kellex–   

I know the Flow is getting the value for {{Id}}  so the variable is working.   

It should return https://kellex– in order to work

Any ideas?



The return URL usually needs to be encoded.  Try wrapping your retURL with the urlEncode merge function ( {{#urlEncode}}{{/urlEncode}} ):




Worked like a charm thanks!