I have developed my Drupal and other CMS sites for several years now on a local server and access it via IP. All sites are located in their own respective folders and accessible by using, for instance, http://my.ip.00.00/drupal1 and http://my.ip.00.00/drupal2, etc.

For the first time ever, everything works as usual with the exception of the "read more" and "add new comment" links within the content. They both link to my IP, for instance, http://my.ip.00.00/?q=node/1, rather than to http://my.ip.00.00/drupal2/?q=node/1, as they should

I am using Drupal 6.4, 2008-08-13 and Light 6.x-2.1. When I change the default theme to Garland, everything works fine and the links go to their respective folders as they should. So I can only guess that I need to look at something particular within the Light theme.

I appreciate any guidance you might be able to pass along and thank you in advance for such.

CommentFileSizeAuthor
#2 links.tpl_.php_.txt952 bytesnickbits

Comments

nickbits’s picture

Assigned: Unassigned » nickbits

Hi,

I know I tested this as my test set-up is very smilar. i.e. I have my-ip/drupal5, my-ip/drupal6, etc. I will take a look at this and see if I can figure it out. I expect I have done something stupid with it.

Cheers,
Nick

nickbits’s picture

Status: Active » Needs review
StatusFileSize
new952 bytes

Hi,

I ahve a solution as attached. Please try replacing your links file with the one attached and let me know if it solves your problem or not. I have tested this with various node types, adding comments, etc. and get no XML errors. Have tested with IE and FireFox (will test with others when I get chance).

I have used the Drupal API "L" function, which I should ahve sued in the first place. Not sure why I did not! For more info on this function see http://api.drupal.org/api/function/l/6.

Let me know if this solves your problem.

Regards,
Nick

jmm1950’s picture

Hi Nick,

I just loaded the file and checked things out. Works like a champ! While the site I'm working on is still in somewhat of a basic form, I expect this matter is solved. If anything more should come up, I'll let you know.

After my first post, I guessed that particular file might have been the culprit so I changed the "a href" link in line 12 to include my directory and that fixed it temporarily so I could work further. But your fix looks like it put the matter "to bed".

I appreciate your help and hope you and others like you realize just how much users like me appreciate your work! I've given passing thought at times to learning PHP but have come to the conclusion that I should've done it 40 years ago after high school graduation. Oh wait, I was already 45 when PHP was created in 1995! Too bad for me.

thanks again,
Joe

nickbits’s picture

Status: Needs review » Closed (fixed)

Thanks for the feedback. Changes will now be integrated in to the next release(s).

Nick