Yes, I see your point.
Avoid this by using full URL instead of just relative URL/file names.
Example, in your nav.php file
<?
define('BASE_URL', 'http://www.the-world.tk/');
?>
<A HREF="<?= BASE_URL . 'index.php';?>">Home page</A><BR>
<A HREF="<?= BASE_URL . 'section1/index.php';?>">Section 1</A><BR>
<A HREF="<?= BASE_URL . 'section2/index.php';?>">Section 2</A><BR>
Hope this helps.