title: how to add data in href with HTML Agility Pack
body: <p>I have a code to get all the 5 links from the site, so I need to change these links by putting &quot;https://advancecare.pt&quot; before......</p>
  <p>For now I have this code:</p>
  <pre><code>HtmlWeb web = new HtmlWeb();
  
  HtmlDocument doc = web.Load(&quot;myLink&quot;);
  
    foreach (HtmlNode ic in doc.DocumentNode.SelectNodes(&quot;//div[@class='component row-splitter']&quot;))
              {
                  foreach (HtmlNode link in doc.DocumentNode.SelectNodes(&quot;//a[@href]&quot;))
                  {
  
                      HtmlNode test = doc.DocumentNode.SelectNodes(&quot;//a[@href]&quot;).First();
                      string hrefValue =  link.GetAttributeValue(&quot;href&quot;, string.Empty);
                     // test.SetAttributeValue(&quot;href&quot;, &quot;mylink&quot; + hrefValue);
                      
                      link.SetAttributeValue(&quot;href&quot;, &quot;mylink&quot; + hrefValue);
                      
                  }
  
              }
  </code></pre>
  <p>This code return:</p>
  <p>https:mylinkmylinkmylinkmylink/hrefValue</p>