Fixed link problem (browse all and recent) on main page and header

The links were not working so I added a the createUrl function
To do : add it to all ressources used located in "www"