Skip to content

url input with trailing slash results in double slash in generated badge Markdown #662

Description

@morphqdd

What happens: When the url action input is provided with a trailing slash (e.g., url: https://example.github.io/myrepo/), entry.sh passes it verbatim to vitals.xsl. The XSL template constructs badge copy-to-clipboard Markdown as [![discipline]({$url}/{$name}-badge.svg)]({$url}/{$name}-vitals.html), producing a double slash in the path: [![discipline](https://example.github.io/myrepo//simple-badge.svg)](https://example.github.io/myrepo//simple-vitals.html). Neither entry.sh nor vitals.xsl strips a trailing slash from the url parameter before concatenating the filename.

What should happen: The generated badge Markdown should contain valid single-slash paths regardless of whether the url input ends with a trailing slash. The entry.sh script should strip any trailing slash from url before passing it to the XSL transformation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions