what's wrong with this kind of href value, thank you

classic Classic list List threaded Threaded
3 messages Options
joe
Reply | Threaded
Open this post in threaded view
|

what's wrong with this kind of href value, thank you

joe
<link href="@{'http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=all'}" rel="stylesheet" type="text/css"/>
<link href="../../assets/global/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>


result:
there is a error with '&subset'.
Reply | Threaded
Open this post in threaded view
|

Re: what's wrong with this kind of href value, thank you

Zemi
Administrator
Hello,

that's a static URL, you don't have to put it inside a @{...} expression.

Also, & is forbidden inside XML attributes, use &amp;

Regards,
   Zemi

joe
Reply | Threaded
Open this post in threaded view
|

Re: what's wrong with this kind of href value, thank you

joe
Hi, Zemi

That's right.
Thank you very much for your help.