Opened 8 years ago

Closed 8 years ago

#14559 closed defect (invalid)

HREF don't work as expected

Reported by: Thomas Rueger Owned by:
Priority: high Milestone: tbd
Component: Dijit Version: 1.7.1
Keywords: Cc:
Blocked By: Blocking:

Description

Webserver with following physical structure:

httdoc (=Root Webserver)

httdoc/test/index.html (=Root Dojo Application)

httdoc/test/dojo (=Dojo)

httdoc/test/Example1/Example2/test2.html (=some html files) httdoc/test/Example1/test1.html (=some html files) httdoc/test/Example1/Example2/Example3/test3.html (=some html files)

  1. Open index.html with http://localhost/test/index.html
  1. Inside index.html set ContentPane? to httdoc/test/Example1/Example2/test2.html with:

<div dojoType="dijit.Tree" id="NormenTree?" data-dojo-props="model:NormenModel, showRoot:false">

<script type="dojo/method" data-dojo-event="onClick" data-dojo-args="item"> dijit.byId("tab_normen").set("href",NormenStore?.getValue(item,"meinPfad")); dojo.byId("LetzterTree?").innerHTML = NormenStore?.getValue(item,"meinPfad"); </script></div>

( = Reading the physical Structure into a Tree and clicking a Node you get "/test/Example1/Example2/test2.html")

Everything works fine.

But inside test2.html are href in the w3C Format like:

<a href="../test1.html</a> Test1<br> or <a href="/example3/test3.html</a> Test3<br>

If clicking on a href expecting open test1.html with:

http:// localhost / test / example1 / test1.html or

http:// localhost / test / example1 / example2 / example3 / test3.html

But you always get:

http:// localhost / test / test1.html or http:// localhost / test / test3.html

You can see it here: http://www.adrimdg.de/NeuIntranet/index6.html (Click in the tree to Normen - ADN - 2010 an a html file with links will be set to contentpane and so on)

Thx Thomas

Change History (1)

comment:1 Changed 8 years ago by bill

Component: GeneralDijit
Resolution: invalid
Status: newclosed

Yes, this is expected behavior. Probably you want dojox.layout.ContentPane's adjustPath's parameter.

Note: See TracTickets for help on using tickets.