Skip to content

Package breaks relative URL generation and causes language routing issues #39

@MasonYageman

Description

@MasonYageman

Description:

We're experiencing a critical issue with the GenericLinks package that breaks our multi-language site functionality.

When adding a PrimaryMenuBlock to our homepage, other header/footer links break
Links that should be relative (e.g., /en-gb/about-us) become absolute URLs with incorrect language paths (e.g., https://mainsite.com/en/about-us)
This affects all direct page links in navigation
Restarting the application fixes the issue temporarily

Root Cause Discovery:
The issue stops happening when we remove services.AddGenericLinkConverters() from our Startup.cs
Removing this service causes other link handling issues, so we can't simply disable it
The problem appears to be triggered by the package's link conversion logic

Environment:
EPiServer 12.31.2
Multi-language site (en, en-gb, fr)
Both localhost and production affected

Impact:
Site becomes unusable for international users
SEO is severely impacted by incorrect language URLs
Navigation breaks completely after adding certain content blocks
Steps to Reproduce:
Have a multi-language EPiServer site with GenericLinks package enabled
Add a PrimaryMenuBlock to the homepage
Observe that other navigation links become absolute URLs with wrong language paths
Restart the application to temporarily fix the issue

Expected Behavior:
Links should remain relative and respect the current language context.

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