Autocompleting src and href attributes

Alasdair Dougall <[email protected]> Mon, 29 Sep 2025 11:56:55 +1000
Newsgroups gmane.text.xml.exist
Message-ID <CAGxx1J9T5K0b7USCpAdw9+bK2GVQ9o37TwkAXk=ZVOGJYDMX0g@mail.gmail.com>
--===============0138419950504621351==
Content-Type: multipart/alternative; boundary="000000000000e7ad14063fe6f363"

--000000000000e7ad14063fe6f363
Content-Type: text/plain; charset="UTF-8"

Hi All,

Recently, I have had eXist eXide do some strange things on saving.  This
was on versions 6.2 and now 6.4  I have my website under
https://www.foodiesite.com, my eXist Dashboard access through
https://admin.foodiesite.com and all works well, until now.

For years I have had relative resource references in app-foodiesite.xqm
module file, In it, I have a few calculated resource locations.  For
example:

 <div class="text-center">
   <a href="/articles/{data($article/dockey)}" class="btn btn-primary
w-75">Click for Article</a>
 </div>

The issue is on saving and closing the file, it expand the href to:

<div class="text-center">
   <a href="*https://admin.foodiesite.com
<https://admin.foodiesite.com>*/articles/{data($article/dockey)}"
class="btn btn-primary w-75">Click for Article</a>
</div>

This is not correct as the nginx mapping for admin is just that admin
dashboard only.

I can work around this by setting the full href path, i.e.;
  ... href="https://www.foodiesite.com/articles/{data($article/dockey)}"

Has anybody else had such fun and games, or am I the lucky 'outlier' of the
group?

Alasdair DougalI

--000000000000e7ad14063fe6f363
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi All,<div><br></div><div>Recently, I have had eXist eXid=
e do some strange things on saving.=C2=A0 This was on versions 6.2 and now =
6.4 =C2=A0I have my website under <a href=3D"https://www.foodiesite.com">ht=
tps://www.foodiesite.com</a>, my eXist Dashboard access through <a href=3D"=
https://admin.foodiesite.com">https://admin.foodiesite.com</a> and all work=
s well,=C2=A0until now.=C2=A0</div><div><br></div><div>For years I have had=
 relative resource references in app-foodiesite.xqm module file, In it, I h=
ave a few calculated resource locations.=C2=A0 For example:</div><div><br><=
/div><div>=C2=A0&lt;div class=3D&quot;text-center&quot;&gt; =C2=A0 =C2=A0<b=
r>=C2=A0 =C2=A0&lt;a href=3D&quot;/articles/{data($article/dockey)}&quot; c=
lass=3D&quot;btn btn-primary w-75&quot;&gt;Click for Article&lt;/a&gt;<br>=
=C2=A0&lt;/div&gt;<br></div><div><br></div><div>The issue is on saving and =
closing the file, it expand the href to:</div><div><br></div><div>&lt;div c=
lass=3D&quot;text-center&quot;&gt; =C2=A0 =C2=A0<br>=C2=A0 =C2=A0&lt;a href=
=3D&quot;<b><a href=3D"https://admin.foodiesite.com">https://admin.foodiesi=
te.com</a></b>/articles/{data($article/dockey)}&quot; class=3D&quot;btn btn=
-primary w-75&quot;&gt;Click for Article&lt;/a&gt;</div><div>&lt;/div&gt;<b=
r></div><div><br></div><div>This is not correct as the nginx mapping for ad=
min is just that admin dashboard only.</div><div><br></div><div>I can work =
around this by setting the full href path, i.e.;</div><div>=C2=A0 ... href=
=3D&quot;<a href=3D"https://www.foodiesite.com/articles/{data($article/dock=
ey)}">https://www.foodiesite.com/articles/{data($article/dockey)}</a>&quot;=
</div><div><br></div><div>Has anybody else had such fun and games, or am I =
the lucky &#39;outlier&#39; of the group?</div><div><br></div><div>Alasdair=
 DougalI</div><div>=C2=A0 =C2=A0<br></div></div>

--000000000000e7ad14063fe6f363--


--===============0138419950504621351==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============0138419950504621351==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Exist-open mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/exist-open

--===============0138419950504621351==--