Using Glass mapper Im trying to create an editable link property doing the following using razor and MVC:
@(RenderLink(
x => x.Settings.First().CompanyLink,
new { @class="navbar-brand page-scroll" },
true
)))
However.. for some reason the two css-classes gets concated with a plus sign between them.. so the end result of the class-attributes value is "navbar-brand+page-scroll".. Just as an ugly work-around I was hoping that:
@(RenderLink(
x => x.Settings.First().CompanyLink,
new { @class="navbar-brand page-scroll" },
true
).ToHtmlString().Replace("+", " ")))
Would solve it.. and it kind of did.. but as soon as you edit the link and the page updates, the classes gets concated again.
Any ideas?
this looks like it might be a bug. I will investigate and get back to you.
Mike