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

Pages should trim quotes from route templates #5835

Closed
rynowak opened this issue Feb 21, 2017 · 1 comment
Closed

Pages should trim quotes from route templates #5835

rynowak opened this issue Feb 21, 2017 · 1 comment

Comments

@rynowak
Copy link
Member

rynowak commented Feb 21, 2017

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.

@pranavkm
Copy link
Contributor

Here's the corresponding Razor work item: aspnet/Razor#980

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants