c1 cms - Composite C1 Razor function - link to external URL -


i've got razor list-to-view function setup , render website url user inputs. problem @ moment clicking url causes anchor try , find page within website, when it's external link.

how do this?

my code rendered url:

    <div id="pagedetails">         <h2> @artist.artistname </h2>          <p><strong>website:</strong> <a href="@artist.artistwebsite">@artist.artistwebsite</a></p>          <p><strong>bio:</strong> @html.c1().body(artist.artistbio)</p>         @if (!string.isnullorempty(artist.image))         {             <img src="@html.c1().mediaurl(artist.image)" /><br />         }     </div> 

the url in data type field should start http://:

use 'http://www.xyz.com' rather 'www.xyz.com'


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -