MoisesZaragoza Posted December 28, 2005 Share Posted December 28, 2005 Hey everyone, I have a OSC site, Vitamins of the month there is a feature that includes a alphabet navigation. Here is the code <? foreach ($listing_split->FirstProductLetters($cPath) AS $FirstProduct) { echo '<a href="index.php/cPath/'.$cPath.'/sort/2a/letter/'.$FirstProduct['FirstLetter'].'/page/'.$CurrentPage.'" class="pageResults">'.$FirstProduct['FirstLetter'].'</a>?'; } ?> but when I press on a letter it takes me to the home page at the end of the day the code will be good Link to comment Share on other sites More sharing options...
evalguy Posted December 28, 2005 Share Posted December 28, 2005 Hey everyone, I have a OSC site, Vitamins of the month there is a feature that includes a alphabet navigation. Here is the code <? foreach ($listing_split->FirstProductLetters($cPath) AS $FirstProduct) { echo '<a href="index.php/cPath/'.$cPath.'/sort/2a/letter/'.$FirstProduct['FirstLetter'].'/page/'.$CurrentPage.'" class="pageResults">'.$FirstProduct['FirstLetter'].'</a> '; } ?> but when I press on a letter it takes me to the home page If you hover over a letter, you'll see the link it wants to go to in the status bar (I do on Firefox, and I get http://www.vitaminsofthemonth.com/index.ph...d77a905fa00e056 when I hover on "G"). When I copy and paste that link in another browser window, it redirects to the home page. My guess is that there may be something small wrong with the link, and your site is setup to go to the home page when an invalid page is selected (instead of showing a 404 error page). As a test of this, if I type in a broken URL into a new browser (example: http://www.vitaminsofthemonth.com/index.php/cPath/44/so ), I get the homepage again. So the bottom line is to look carefully at where the links and pointing to and figure out what's wrong with it. Could be as simple as an upper/lower case problem, or adjust the php code so it creates the correct URL. -Neil. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.