1 Reply Latest reply on Jan 5, 2017 10:57 AM by dtcgnet

    WebDirect URL issue with parameters

    dtcgnet

      I'm noticing some odd behavior with WebDirect URLs. I'm passing the URL to go to when a user logs out, and I'm passing a script name with a parameter.

       

      When I create a link such as:

      https://blah.site.com/fmi/webd?homeurl=http://www.site.com#databasename.fmp12?script=scriptname&param=SomeText

      The parameter will not pass correctly if I paste the URL directly into a browser window. Note the inclusion of "amp;" after the ampersand.

       

       

      If I remove the "amp;", which changes the above format to:

      https://blah.site.com/fmi/webd?homeurl=http://www.site.com#databasename.fmp12?script=scriptname&param=SomeText

      The parameter DOES pass correctly when pasted directly into a browser window.

       

      If I create a profile for use on my iPhone, the resulting app works just fine with the "amp;" included. Also, if I pass the version which includes "amp;" from a link on a WordPress site, the URL works properly. The iOS profile I create won't even install on my iPhone without the "amp;" included.

       

      I'm using FM15 and FMS15. I've tested both ways in Safari and Chrome, and the behavior is consistent.

       

      Is this expected behavior?

        • 1. Re: WebDirect URL issue with parameters
          dtcgnet

          My apologies...Found this online:

           

           

          "Note that when replacing & with &amp; is only done when writing the URL in HTML, where “&” is a special character (along with “<” and “>“). When writing the same URL in a plain text email message or in the location bar of your browser, you would use “&” and not “&amp;”. With HTML, the browser translates “&amp;” to “&” so the Web server would only see “&” and not “&amp;” in the query string of the request."

          1 of 1 people found this helpful