@@ -262,7 +262,6 @@ WHERE
262262 <xsl : template match =" div[@about]//button[contains-token(@class, 'btn-edit')][not(contains-token(@class, 'disabled'))]" mode =" ixsl:onclick" >
263263 <xsl : param name =" block" select =" ancestor::div[contains-token(@class, 'block')][1]" as =" element()" />
264264 <xsl : param name =" about" select =" $block/@about" as =" xs:anyURI" />
265- <!-- <xsl:param name="graph" as="xs:anyURI?"/>-->
266265
267266 <xsl : sequence select =" ixsl:call(ixsl:event(), 'preventDefault', [])" />
268267 <ixsl : set-style name =" cursor" select =" 'progress'" object =" ixsl:page()//body" />
@@ -328,7 +327,7 @@ WHERE
328327 <xsl : variable name =" block" select =" id($block-id, ixsl:page())" as =" element()" />
329328
330329<!-- if the URI is external, dereference it through the proxy-->
331- <xsl : variable name =" request-uri" select =" ldh:href(ac:absolute-path(ldh:base-uri(.)), map{} )" as =" xs:anyURI" />
330+ <xsl : variable name =" request-uri" select =" ldh:href($about )" as =" xs:anyURI" />
332331 <xsl : variable name =" request" select =" map{ 'method': 'GET', 'href': $request-uri, 'headers': map{ 'Accept': 'application/rdf+xml' } }" as =" map(*)" />
333332 <xsl : variable name =" context" as =" map(*)" select ="
334333 map{
@@ -519,7 +518,7 @@ WHERE
519518 <xsl : apply-templates select =" $document" mode =" bs2:Form" ><!-- document level template-->
520519 <xsl : with-param name =" about" select =" ()" /><!-- don't set @about on the container until after the resource is saved-->
521520 <xsl : with-param name =" method" select =" $method" />
522- <xsl : with-param name =" action" select =" $action" />
521+ <xsl : with-param name =" action" select =" $action" tunnel = " yes " />
523522 <xsl : with-param name =" form-actions-class" select =" 'form-actions modal-footer'" />
524523 <xsl : with-param name =" classes" select =" ()" />
525524 <xsl : with-param name =" type-metadata" select =" $type-metadata" tunnel =" yes" />
@@ -980,31 +979,6 @@ WHERE
980979 <ixsl : set-style name =" cursor" select =" 'default'" object =" ixsl:page()//body" />
981980 </xsl : for-each >
982981 </xsl : function >
983-
984- <xsl : function name =" ldh:modal-form-submit-success" ixsl : updating =" yes" >
985- <xsl : param name =" context" as =" map(*)" />
986- <xsl : variable name =" response" select =" $context('response')" as =" map(*)" />
987-
988- <xsl : message >ldh:modal-form-submit-success</xsl : message >
989-
990- <xsl : for-each select =" $response" >
991- <xsl : variable name =" href" select =" ac:absolute-path(xs:anyURI(ixsl:location()))" as =" xs:anyURI" /><!-- TO-DO: pass $context?base-uri-->
992- <xsl : variable name =" request" select =" map{ 'method': 'GET', 'href': $href, 'headers': map{ 'Accept': 'application/xhtml+xml' } }" as =" map(*)" />
993- <xsl : variable name =" context" select =" map:merge((
994- $context,
995- map{
996- 'request': $request,
997- 'href': $href
998- }
999- ), map{ 'duplicates': 'use-last' })" as =" map(*)" />
1000- <ixsl : promise select ="
1001- ixsl:http-request($context('request'))
1002- => ixsl:then(ldh:rethread-response($context, ?))
1003- => ixsl:then(ldh:handle-response#1)
1004- => ixsl:then(ldh:xhtml-document-loaded#1)
1005- " on-failure =" ldh:promise-failure#1" />
1006- </xsl : for-each >
1007- </xsl : function >
1008982
1009983 <xsl : function name =" ldh:form-submit-created" ixsl : updating =" yes" >
1010984 <xsl : param name =" context" as =" map(*)" />
@@ -1018,7 +992,8 @@ WHERE
1018992 <xsl : variable name =" context" as =" map(*)" select ="
1019993 map{
1020994 'request': $request,
1021- 'href': $href
995+ 'href': $href,
996+ 'push-state': true()
1022997 }" />
1023998 <ixsl : promise select ="
1024999 ixsl:http-request($context('request'))
@@ -1074,7 +1049,7 @@ WHERE
10741049 <xsl : apply-templates select =" ." mode =" bs2:Form" ><!-- document level template-->
10751050 <xsl : with-param name =" about" select =" ()" /><!-- don't set @about on the container until after the resource is saved-->
10761051 <xsl : with-param name =" method" select =" $form/@method" />
1077- <xsl : with-param name =" action" select =" $form/@action" as =" xs:anyURI" />
1052+ <xsl : with-param name =" action" select =" $form/@action" as =" xs:anyURI" tunnel = " yes " />
10781053 <xsl : with-param name =" form-actions-class" select =" 'form-actions modal-footer'" as =" xs:string?" />
10791054 <xsl : with-param name =" classes" select =" ()" />
10801055 <xsl : with-param name =" type-metadata" select =" $type-metadata" tunnel =" yes" />
@@ -1223,15 +1198,6 @@ WHERE
12231198 <xsl : variable name =" constructed-doc" select =" ldh:construct-forClass($forClass)" as =" document-node()" />
12241199 <xsl : variable name =" doc-uri" select =" resolve-uri(ac:uuid() || '/', ac:absolute-path(ldh:base-uri(.)))" as =" xs:anyURI" /><!-- build a relative URI for the child document-->
12251200 <xsl : variable name =" this" select =" $doc-uri" as =" xs:anyURI" />
1226- <!-- set document URI instead of blank node-->
1227- <xsl : variable name =" constructed-doc" as =" document-node()" >
1228- <xsl : document >
1229- <xsl : apply-templates select =" $constructed-doc" mode =" ldh:SetResourceID" >
1230- <xsl : with-param name =" forClass" select =" $forClass" tunnel =" yes" />
1231- <xsl : with-param name =" about" select =" $this" tunnel =" yes" />
1232- </xsl : apply-templates >
1233- </xsl : document >
1234- </xsl : variable >
12351201 <xsl : variable name =" classes" select =" ()" as =" element()*" />
12361202
12371203 <xsl : for-each select =" $content-body" >
@@ -1255,7 +1221,7 @@ WHERE
12551221 <xsl : apply-templates select =" $constructed-doc" mode =" bs2:Form" ><!-- document level template-->
12561222 <xsl : with-param name =" about" select =" ()" /><!-- don't set @about on the container until after the resource is saved-->
12571223 <xsl : with-param name =" method" select =" 'put'" />
1258- <xsl : with-param name =" action" select =" ldh:href($doc-uri, map{} )" as =" xs:anyURI" />
1224+ <xsl : with-param name =" action" select =" ldh:href($doc-uri)" as =" xs:anyURI" tunnel = " yes " />
12591225 <xsl : with-param name =" form-actions-class" select =" 'form-actions modal-footer'" as =" xs:string?" />
12601226 <xsl : with-param name =" classes" select =" $classes" />
12611227 <xsl : with-param name =" type-metadata" select =" $type-metadata" tunnel =" yes" />
@@ -1351,7 +1317,7 @@ WHERE
13511317 <xsl : apply-templates select =" $constructed-doc" mode =" bs2:RowForm" >
13521318 <xsl : with-param name =" about" select =" ()" /><!-- don't set @about on the container until after the resource is saved-->
13531319 <xsl : with-param name =" method" select =" $method" />
1354- <xsl : with-param name =" action" select =" ldh:href($doc-uri, map{} )" as =" xs:anyURI" />
1320+ <xsl : with-param name =" action" select =" ldh:href($doc-uri)" as =" xs:anyURI" tunnel = " yes " />
13551321 <xsl : with-param name =" type-metadata" select =" $type-metadata" tunnel =" yes" />
13561322 <xsl : with-param name =" property-metadata" select =" $property-metadata" tunnel =" yes" />
13571323 <xsl : with-param name =" constructor" select =" $constructed-doc" tunnel =" yes" />
@@ -1612,7 +1578,7 @@ WHERE
16121578
16131579 <xsl : apply-templates select =" $resource" mode =" bs2:Form" >
16141580 <xsl : with-param name =" method" select =" 'post'" />
1615- <xsl : with-param name =" action" select =" ldh:href($doc-uri, map{} )" as =" xs:anyURI" />
1581+ <xsl : with-param name =" action" select =" ldh:href($doc-uri)" as =" xs:anyURI" tunnel = " yes " />
16161582 <xsl : with-param name =" classes" select =" $classes" />
16171583 <xsl : with-param name =" type-metadata" select =" $type-metadata" tunnel =" yes" />
16181584 <xsl : with-param name =" property-metadata" select =" $property-metadata" tunnel =" yes" />