Skip to content

RouteOptions.LowercaseUrls isn't respected #523

@OskarKlintrot

Description

@OskarKlintrot

Describe the bug

When setting RouteOptions.LowercaseUrls to true this package still uses camel casing.

What area is it related to
API

To Reproduce

Set LowercaseUrls to true:

builder.Services.Configure<RouteOptions>(options =>
{
    options.LowercaseUrls = true;
});

After challenge when /ActiveLogin/BankId/Auth?returnUrl=%2Fal-bankid-auth-samedevice-callback&uiOptions=... is called, it is CamelCase instead of lowercase.

Expected behavior
Request /activelogin/bankid/auth

Screenshots
N/A

NuGet package version
11.0.0

Runtime version
.NET 9

Smartphone (please complete the following information):

  • Device: iPhone 8 and 16 Pro
  • OS: 16.7.10 and 18.6.2
  • Browser: Safari, works on Chrome

Additional context
We use Razor Pages and not MVC. We noticed this when trying to figure out why BankID was launched two time on Safari on iOS. It will get called again but the next time it's lowercase. Not sure yet if it's related.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions