dotnet / dotnet/aspnetcore

Upgrading from 10.0.0.10 to 10.0.0.11 Broken href='~/...' on <link>

Open
#68,456 1 comment 0 reactions 0 assignees View on GitHub
area-ui-rendering Regression
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 6h
Merged PRs (30d)
290

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Describe the bug

I have a web app originally built in the .NET 3.1 that has been updated, as of today, all the way to 10.0.0.11. Previous through monthly patching have worked.

But today's update from 10.0.0.10 to 10.0.0.11 (underneath to SDK 10.0.400 and 10.0.0.11 for Microsoft.* NuGet packages) broke the CSS loading in by home `index.cshtlp`.

Specifically in

```


```

the tildes are not replaced. Other tag helpers (including custom ones) are working correctly, expanding '~' to '/' by their use of `IUrlHelper.Content(string)`.

It seems the "hidden" tilde tag helper is failing in 10.0.0.11.

Everything else works.

(Creating a test project for a re-create doesn't show this behaviour.)

### Expected Behavior

_No response_

### Steps To Reproduce

_No response_

### Exceptions (if any)

_No response_

### .NET Version

_No response_

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the link elements in index.cshtlp and trace the tag-helper path that should call IUrlHelper.Content(string). Compare the behavior between 10.0.0.10 and 10.0.0.11, noting that a newly created test project does not reproduce it. Done means the regression is isolated and the tilde is handled correctly for these stylesheet links.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, html
Domain
web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.