<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Jackie,<br>
<br>
Yes because the viewers directory is <font face="Arial" size="2"><span
class="666301803-15012007">/mapguide/mapviewerajax. I have used
relative to server URLs successfully in the past, e.g.
/mapguide/foo/bar.php. The downside is that this forces you to put your
application in the WebServerExtensions\www directory. You can also
create an Alias (apache) or Virtual directory (IIS) for your app called
foo that points to any folder you choose and then use /foo/bar.php.
Either of these two techniques should work.<br>
<br>
Bob<br>
</span></font><br>
Jackie Ng wrote:
<blockquote
cite="mid04fc01c73855$8453d290$3305000a@aecmel.aecspatial.com.au"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta content="MSHTML 6.00.2900.3020" name="GENERATOR">
<div><font face="Arial" size="2"><span class="666301803-15012007">Hi
All,</span></font></div>
<div><font face="Arial" size="2"><span class="666301803-15012007"></span></font> </div>
<div><font face="Arial" size="2"><span class="666301803-15012007">I've
been trying to use relative urls for the home task in my weblayout (eg.
"/foo/bar.php" instead of "<a href="http://host/foo/bar.php">http://host/foo/bar.php</a>")</span></font></div>
<div><font face="Arial" size="2"><span class="666301803-15012007"></span></font> </div>
<div><font face="Arial" size="2"><span class="666301803-15012007">The
url loads fine on first load, but when I click the home task button, it
goes 404 because mapguide tries to append that relative url to the
mapviewer url, instead of going to that url</span></font></div>
<div><font face="Arial" size="2"><span class="666301803-15012007"></span></font> </div>
<div><font face="Arial" size="2"><span class="666301803-15012007">(ie.
i get "/mapguide/mapviewerajax/foo/bar.php" instead of "/foo/bar.php")</span></font></div>
<div><font face="Arial" size="2"><span class="666301803-15012007"></span></font> </div>
<div><font face="Arial" size="2"><span class="666301803-15012007">Is
this behaviour normal or intended?</span></font></div>
<div> </div>
<div align="left">
<div dir="ltr" align="left"><font face="Arial" size="2"><span
class="005021001-13102006"></span></font><font
face="Lucida Sans Unicode" size="2">Regards,</font></div>
<p align="left"><font face="Lucida Sans Unicode" size="2">Jackie Ng</font></p>
<p align="left"><font color="#0000ff" face="Lucida Sans Unicode"
size="2">AEC Spatial Pty Ltd. / AEC Systems Pty Ltd.</font><br>
<span lang="en-au"><font color="#0000ff" face="Lucida Sans Unicode"
size="2">SYDNEY - MELBOURNE - BRISBANE - PERTH - HOBART</font></span> <font
color="#0000ff" face="Lucida Sans Unicode" size="2">- AUCKLAND (NZ)</font><span
lang="en-au"></span></p>
<p align="left"><font color="#0000ff" face="Lucida Sans Unicode"
size="2">A.B.N: 32 075 809 451</font></p>
<p align="left"><span lang="en-au"><font color="#0000ff"
face="Lucida Sans Unicode" size="2">Level 4, 37-41 Prospect St. Box
Hill, Victoria, 3128</font></span></p>
<p align="left"><span lang="en-au"><font face="Lucida Sans Unicode"
size="2">Phone: 1300 368 609</font></span> <br>
<span lang="en-au"><font face="Lucida Sans Unicode" size="2">Fax:
1300 362 140</font></span> </p>
<p align="left"><span lang="en-au"><font face="Lucida Sans Unicode"
size="2"><a class="moz-txt-link-abbreviated" href="http://www.aecsystems.com.au">www.aecsystems.com.au</a></font></span> <br>
<font face="Arial" size="2"><a
title="mailto:jackie.ng@aecsystems.com.au"
href="blocked::mailto:jackie.ng@aecsystems.com.au">jackie.ng@aecsystems.com.au</a></font></p>
</div>
<div> </div>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
</pre>
</blockquote>
<br>
</body>
</html>