Skip to content

NavBar version badge shows duplicated leading 'v' (e.g. vv0.159.15) on on-prem #6067

@Erwan-loot

Description

@Erwan-loot

Describe the bug

On on-premise instances, the version badge rendered in the top-right of the NavBar shows a duplicated leading v, e.g. vv0.159.15 instead of v0.159.15.

To Reproduce

Steps to reproduce the behavior:

  1. Deploy any recent on-prem Infisical release (reproduced on v0.159.15, but the code path has existed since the VersionBadge component was introduced).
  2. Log in and look at the NavBar in the top-right corner on a viewport ≥ md.
  3. Observe the badge — it reads vv0.159.15.

Expected behavior

The badge should display v0.159.15 (a single leading v).

Screenshots

Rendered HTML (captured from an on-prem v0.159.15 instance):

<span data-slot="badge" class="... mt-[3px] mr-2 hidden md:inline-flex">vv0.159.15</span>

Root cause

The backend already normalizes this by using v${INFISICAL_PLATFORM_VERSION} with a raw semver, so the issue is isolated to the frontend badge.

Proposed fix

Strip a leading v from version before re-prepending it, so the component is idempotent regardless of whether the env var is provided with or without the leading v (and matches the backend's logging format).

I've opened a PR with this fix:

Platform you are having the issue on

  • On-premise / self-hosted, Docker infisical/infisical:v0.159.15

Additional context

  • Only affects on-prem (cloud and dedicated instances skip rendering this badge).
  • Visible on viewports md and up where the badge is inline-flex.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions