Developer forum

Forum » CMS - Standard features » Application 8.4.0.17 renders Razor different?

Application 8.4.0.17 renders Razor different?

Peter Leleulya
Reply

I have several problems with 8.4.0.17 ...

For a simple example, in my headsection:

<html lang="@GetValue("Lang")">

When I have 8.4.0.16 attached it renders:

<html lang="en">

When I have 8.4.0.17 attached it renders:

<html="">

Am I doing something wrong or is this a bug?

 

 


Replies

 
Mikkel Ricky
Reply

In your layout templates (page templates) you should always use single quotes around attribute values containing Razor strings, e.g. write

<html lang='@GetValue("Lang")'>

Double quotes inside double quotes confuses Html Agility Pack that Dynamicweb uses for parsing layout templates. 

Best regards,
Mikkel

 

You must be logged in to post in the forum