Skip to content

Razor regression in ASP .NET Core 9.0 (script type=importmap and others) #58973

@AlexBAV

Description

@AlexBAV

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

The following razor snippet renders to nothing (is completely ignored??) in ASP.NET Core 9.0. Used to work correctly in previous version:

<script type="importmap">
	 {
		 "imports": {
		 }
	}
</script>

Looks like a bug in server-side script tag helper.

IMPORTANT! Suggested Workaround:

See below for a suggested workaround.

Expected Behavior

Should render "as is", without modifications

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

9.0.100

Anything else?

No response

Metadata

Metadata

Assignees

Labels

area-ui-renderingIncludes: MVC Views/Pages, Razor Views/Pages

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions