Skip to content

Navigation in DynamicHeader.astro goes wrong when config prefixDefaultLocale: true, #63

Description

@spoetnik

When setting the prefixDefaultLocale: true, in astro.config.mjs, the Navigation in the DynamicHeader.astro neglects this setting.
The fix is to remove the defaultLocale handling in translationUtils.ts

Line 89 should be
if (trimmed === "") { // Home page return /${locale}/; }

Line 104 should remove the if-statement.

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