sumcwan Posted June 26, 2008 Share Posted June 26, 2008 I've been experienced problem with linking. You can go to portfolio then click on any of the projects, the 1st one came out right, but then when you try to click on the 2nd project, it doesn't work. please check wingluk.com for the problem. eg. link for project 1 is "portfolio/project1/" and after that I want to go to project 2 from project 1, but after clicking on it, it becomes "portfolio/project1/project2/" Can anyone tell what's wrong with my code? Thanks! Link to comment https://forums.phpfreaks.com/topic/111949-linking-problem/ Share on other sites More sharing options...
DarkWater Posted June 26, 2008 Share Posted June 26, 2008 Yes, we could do that, if you actually posted code. It's probably because you need to do ../project2 instead. Or just set up a BASE_PATH constant and use it for all links. Link to comment https://forums.phpfreaks.com/topic/111949-linking-problem/#findComment-574578 Share on other sites More sharing options...
rhodesa Posted June 26, 2008 Share Posted June 26, 2008 Use the absolute path for the menu items: <a href="/portfolio/project1/">Project 1</a> <a href="/portfolio/project2/">Project 2</a> Link to comment https://forums.phpfreaks.com/topic/111949-linking-problem/#findComment-574579 Share on other sites More sharing options...
rhodesa Posted June 26, 2008 Share Posted June 26, 2008 Yes, we could do that, if you actually posted code. It's probably because you need to do ../project2 instead. Or just set up a BASE_PATH constant and use it for all links. he posted a link to the site ....and this topic should be moved to the HTML forums.... Link to comment https://forums.phpfreaks.com/topic/111949-linking-problem/#findComment-574581 Share on other sites More sharing options...
DarkWater Posted June 26, 2008 Share Posted June 26, 2008 @rhodesa: I'm pretty sure his web root isn't /. xD He'll need to set up a constant or something to make all the links (saves typing and makes thing easier to update). Link to comment https://forums.phpfreaks.com/topic/111949-linking-problem/#findComment-574582 Share on other sites More sharing options...
rhodesa Posted June 26, 2008 Share Posted June 26, 2008 not a file system absolute path...a URL absolute path Link to comment https://forums.phpfreaks.com/topic/111949-linking-problem/#findComment-574601 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.