On 10 Feb 2011, at 02:37, a...@akhlah.com wrote:

> Forgive me if this seems a bit simplistic I am new to Radiant
> 
> this is what I have on the main page
> 
>      <table class="parsha_main" border="0" cellpadding="0" cellspacing="2">
>         <tr>
>            <td style="vertical-align: top; text-align: center;">
>              <a href="bereshit-genesis-1-16-8/bereshit-hebrew-1st-aliyah">
>              <img src="/images/parsha/parsha_in_hebrew.png" style="width:
> 120px; height: 120px;" /></a>
>            </td>
>          </tr>
>      </table>
> 
> When I put the table on sub pages the links do not work - they seem to
> just append to the url that they are coming from

This is just how html linking works: A destination in the form "/somewhere" is 
absolute - that is, relative to the root of your site - but a link in the form 
"somewhere" with no initial slash is relative to the address of the page on 
which it sits. If you move it to a subpage it will point to a descendant of 
that page. In this case all you need to do is put a / at the beginning of each 
address.

In rails apps relative links can be slightly troublesome anyway: our routing 
means that /page and /page/ will both render correctly, but the web browser 
sees one as a file and one as a subfolder and links from them differently. 
/links tend to work best.

best, 

will


ps. more at 
http://www.coffeecup.com/help/articles/absolute-vs-relative-pathslinks/

Reply via email to