Skip to content

Commit a1d1600

Browse files
committed
[bugfix] fix referrer spelling
1 parent d63b760 commit a1d1600

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

cityehr-documentation-common/src/main/xslt/create-topic-html.xslt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@
184184
<xsl:variable name="petal-source-file-uri-tokens" select="tokenize($petal-source-file-uri, concat($petal-github-repo-name, '/'))" />
185185
<xsl:variable name="petal-source-file" select="$petal-source-file-uri-tokens[last()]" />
186186
<xsl:variable name="petal-webpage-filename" select="hcom:dita-filename-to-html(com:filename($petal-source-file-uri))" />
187-
<xsl:sequence select="concat($petal-api-url, '?ghrepo=', $petal-github-org-name, '/', $petal-github-repo-name, '&amp;source=', $petal-source-file, '&amp;branch=', $petal-github-branch, '&amp;referer=', string-join(($petal-referrer-base-url, $petal-referrer-sub-folder, $petal-webpage-filename), '/'))" />
187+
<xsl:sequence select="concat($petal-api-url, '?ghrepo=', $petal-github-org-name, '/', $petal-github-repo-name, '&amp;source=', $petal-source-file, '&amp;branch=', $petal-github-branch, '&amp;referrer=', string-join(($petal-referrer-base-url, $petal-referrer-sub-folder, $petal-webpage-filename), '/'))" />
188188
</xsl:function>
189189

190190
</xsl:stylesheet>

cityehr-documentation-common/src/test/xspec/create-topic-html.xspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<x:param name="petal-referrer-base-url" as="xs:string">https://evolvedbinary.github.io/cityehr-documentation</x:param>
2424
<x:param name="petal-referrer-sub-folder" as="xs:string">quick-start-guide</x:param>
2525
</x:call>
26-
<x:expect label="Correct Petal Edit URL" select="'https://petal.evolvedbinary.com?ghrepo=evolvedbinary/cityehr-documentation&amp;source=cityehr-quick-start-guide/src/main/lwdita/quick-start-guide/verify-install.dita&amp;branch=develop&amp;referer=https://evolvedbinary.github.io/cityehr-documentation/quick-start-guide/verify-install.html'"/>
26+
<x:expect label="Correct Petal Edit URL" select="'https://petal.evolvedbinary.com?ghrepo=evolvedbinary/cityehr-documentation&amp;source=cityehr-quick-start-guide/src/main/lwdita/quick-start-guide/verify-install.dita&amp;branch=develop&amp;referrer=https://evolvedbinary.github.io/cityehr-documentation/quick-start-guide/verify-install.html'"/>
2727
</x:scenario>
2828

2929
<x:scenario label="Scenario for testing the petal-edit-url function with source file in GitHub Action container">
@@ -36,7 +36,7 @@
3636
<x:param name="petal-referrer-base-url" as="xs:string">https://evolvedbinary.github.io/cityehr-documentation</x:param>
3737
<x:param name="petal-referrer-sub-folder" as="xs:string">quick-start-guide</x:param>
3838
</x:call>
39-
<x:expect label="Correct Petal Edit URL" select="'https://petal.evolvedbinary.com?ghrepo=evolvedbinary/cityehr-documentation&amp;source=cityehr-quick-start-guide/src/main/lwdita/quick-start-guide/verify-install.dita&amp;branch=develop&amp;referer=https://evolvedbinary.github.io/cityehr-documentation/quick-start-guide/verify-install.html'"/>
39+
<x:expect label="Correct Petal Edit URL" select="'https://petal.evolvedbinary.com?ghrepo=evolvedbinary/cityehr-documentation&amp;source=cityehr-quick-start-guide/src/main/lwdita/quick-start-guide/verify-install.dita&amp;branch=develop&amp;referrer=https://evolvedbinary.github.io/cityehr-documentation/quick-start-guide/verify-install.html'"/>
4040
</x:scenario>
4141

4242
</x:description>

0 commit comments

Comments
 (0)