title: GetURL returns wrong URL
body: <p>I have a Google App Script program that has a number of HTML pages.  To generate the URL's for links to individual pages, I use this function on the server code:</p>
  <pre><code>function getScriptUrl() {
      var url = ScriptApp.getService().getUrl();      
      return url;
  }
  </code></pre>
  <p>to return a URL that I could then embed like this, on the client side:</p>
  <pre><code>&lt;?var myURL = getScriptUrl();?&gt;&lt;a class=&quot;btn btn-success&quot; href='&lt;?=myURL?&gt;?page=CreateNew'&gt;My Button/a&gt; 
  </code></pre>
  <p>This always returned the URL of the app.  So, if am testing in the Dev version, it returns the Dev URL, if I am in the Exe version, it returns the Exe URL.  But, now, if I am in the Dev version, it returns the Exe URL.  This was never an issue in the past but started today.  Does anyone know why this is happening or a better way to generate the URL to create links between pages?</p>
  <p><strong>EDIT:</strong>
  I have tried to republish the app (in Legacy Editor and the New Editor), log out of G Suite account, clear my cache but these attempts did not work to address the issue.</p>