Skip to content

Commit

Permalink
deal with relative links from home
Browse files Browse the repository at this point in the history
  • Loading branch information
respinos committed Oct 3, 2023
1 parent 0a49394 commit 146bb1a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion samples/scripts/textclass.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,8 @@ async function processDLXS(req, res) {
fs.unlinkSync(quiCompiledFilename);
fs.unlinkSync(qbatOutputFilename);
} else {
res.send("OOPS");
const output = await resp.text();
res.send("OOPS\n" + '<details><summary>Stack Trace</summary><div>' + output + '</div>');
}
}

Expand Down
6 changes: 6 additions & 0 deletions templates/text/qbat/qbat.base.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<xsl:apply-templates select="qui:base" />

<xsl:apply-templates select="xhtml:title" mode="copy" />
<xsl:apply-templates select="xhtml:meta" mode="copy" />

Expand Down Expand Up @@ -462,6 +464,10 @@
<xsl:apply-templates select="." mode="copy-guts" />
</xsl:template>

<xsl:template match="qui:base">
<base href="{@href}" />
</xsl:template>

<xsl:template match="qui:linkkkk[@identifier != '']" priority="100">
<xsl:param name="class" />
<xsl:param name="attributes" />
Expand Down
4 changes: 4 additions & 0 deletions templates/text/qui/qui.home.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
Index
</xsl:template>

<xsl:template name="build-head-block">
<qui:base href="/{substring($collid, 1, 1)}/{$collid}/" />
</xsl:template>

<xsl:template name="build-body-main">
<xsl:call-template name="build-body-page-index" />
</xsl:template>
Expand Down

0 comments on commit 146bb1a

Please sign in to comment.