Hi I am getting a link error on my node/add/content page. I created header links profile, invite and logout in a block.

I set them to show on every page for authenticated users. When I go to node/add lets say image and I try to go back to my profile by clicking the profile link. The url shows up like node/add/node/add/user

Comments

mikesir87’s picture

Are you placing these links directly into a block, or using a Menu?

To me, it looks like you're putting them directly into a block. You'll probably run into this issue when using Clean URLs, and not setting up the links properly. If possible, move them into a menu, as menus do a great job ensuring the links are setup correctly. If you can't, try adding a / at the beginning of the link to put it at the root level. If you don't want the root level, you'll need to use some PHP, and put base_path() before the beginning of your link.

younggun’s picture

Thanks mikesir87 I was not putting a / at the beginning of the link so that was causing the problem. All is well now.