Include the URL of a related entry field I would like to add the URL of the channel entry I have selected (atm 2 channels are available to choose from), so I would like a url like:

summerhouses/product1

or

greehnouses/product2

how would I modify the code below to achieve this? 

The code below just shows: /product1

{% for row in entry.homeFeaturedProducts.order('RAND()')|batch(4) %}
{% for entry in row %}
    &lt;h2 class="product-card-title"&gt;&lt;a href="{{ entry.getUrl }}"&gt;{{ entry.title }}&lt;/a&gt;&lt;/h2&gt;
    &lt;span class="product-card-desc"&gt;Product Description&lt;/span&gt;
    &lt;span class="product-card-price"&gt;{{ entry.price }}&lt;/span&gt;
{% endfor %}        
{% endfor %}
Try this - using {{ entry.section }} and {{ entry.slug }}

{% for row in entry.homeFeaturedProducts.order('RAND()')|batch(4) %}
{% for entry in row %}
    &lt;h2 class="product-card-title"&gt;&lt;a href="{{ entry.section}}/{{ entry.slug }}"&gt;{{ entry.title }}&lt;/a&gt;&lt;/h2&gt;
    &lt;span class="product-card-desc"&gt;Product Description&lt;/span&gt;
    &lt;span class="product-card-price"&gt;{{ entry.price }}&lt;/span&gt;
{% endfor %}        
{% endfor %}