close
Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Pages should trim quotes from route templates #5835

@rynowak

Description

@rynowak

This page (HelloWorldWithRoute.cshtml):

@page "Some/Path/{text}"

Hello, @(ViewContext.RouteData.Values["text"])!

produces the route template HelloWorldWithRoute/"Some/Path/{text}". The quotes should not be present in the route template.

As a workaround I'm removing the quotes from the page, but this workaround shouldn't be allowed by Razor at all.

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions