$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>My custom link works only on home page|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

My custom link works only on home page

matteradmin9PV0评论

I created a custom ID for the Portfolio section on my home page. Then I linked it to the "Portfolio" menu, but for some reason it only works from Home page and not from other pages. I tried to add /home as a part of the link (as were recommended previously for other people having similar issue but) it didn't work.

I would appreciate any help :) Cheers!

I created a custom ID for the Portfolio section on my home page. Then I linked it to the "Portfolio" menu, but for some reason it only works from Home page and not from other pages. I tried to add /home as a part of the link (as were recommended previously for other people having similar issue but) it didn't work.

I would appreciate any help :) Cheers!

Share Improve this question asked Jan 7, 2019 at 4:32 LilyLily 111 bronze badge 3
  • 3 You've got // in front of the URL. Those shouldn't be there. – Jacob Peattie Commented Jan 7, 2019 at 4:40
  • Can you please share the url ? – Tejas Gajjar Commented Jan 7, 2019 at 7:53
  • @TejasGajjar ... It's in the screenshot. – Jacob Peattie Commented Jan 7, 2019 at 10:48
Add a comment  | 

1 Answer 1

Reset to default 0

You link to the anchor, so you have to put all link in there. And you've done it.

But there are some additional "//" in your URL, so it's not valid URL, so browsers may ignore some part of it.

Just remove those "//" and it should work just fine.

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far