Skip to content

Commit

Permalink
Merge pull request #2 from evolvedbinary/hotfix/source
Browse files Browse the repository at this point in the history
Repo name should be removed from source paramter of Edit Button
  • Loading branch information
adamretter authored Oct 27, 2024
2 parents 223006a + 2feca30 commit 83307e7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
<xsl:function name="htop:petal-edit-url" as="xs:string">
<xsl:param name="topic" as="element(topic)" required="yes"/>
<xsl:variable name="petal-source-file-uri" select="com:document-uri($topic)" />
<xsl:variable name="petal-source-file" select="substring-after($petal-source-file-uri, $petal-github-repo-name || '/')" />
<xsl:variable name="petal-source-file" select="substring-after($petal-source-file-uri, concat($petal-github-repo-name, '/'))" />
<xsl:variable name="petal-webpage-filename" select="hcom:dita-filename-to-html(com:filename($petal-source-file-uri))" />
<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=', $petal-referrer-base-url, '/', $petal-webpage-filename)" />
</xsl:function>
Expand Down

0 comments on commit 83307e7

Please sign in to comment.