I have an ASP.Net MVC application which compiles .less files into CSS. In a particular scenario if I hit my endpoint
http:///Account/ResetPassword?t=eyJ0eXAiOiJKV1Qi...
the query string results in a .less compilation warning
directive block with unrecognised format on line 1 in file '~/Content/packageForm.less': []: /beginning of file [1]: @t: eyJ0eXAiOiJKV1Qi...;
^ [2]: @import "setup.less"; directive block with unrecognised format on line 1 in file '~/Content/packageForm.less': []: /beginning of file [1]: @t: eyJ0eXAiOiJKV1Qi...;
^ [2]: @import "setup.less"; directive block with unrecognised format on line 1 in file '~/Content/IE.less': []: /beginning of file [1]: @t: eyJ0eXAiOiJKV1Qi...;
^ [2]: #notes{ directive block with unrecognised format on line 1 in file '~/Content/IE.less': []: /beginning of file [1]: @t: eyJ0eXAiOiJKV1Qi...;
^ [2]: #notes{
If I remove the query string parameter 't' then no compilation errors occur.
Does anyone have a solution?
Thanks,
Paul.