$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'); ?>Add custom external link to menu|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)

Add custom external link to menu

matteradmin11PV0评论

I have added few custom external links to my menu and they all link to 1 website but with a few subfolders, so the urls look pretty much like this:

website.co.uk/web1/web2/web3/folder1\folder2\folder3

It does not seem to work for me as wordpress changes my site url every time when I click on it to something like this:

website.co.uk/web1/web2/web3/folder1folder2folder3 

(so it removes back slashes from the url)

Of course the website opens but there is no content because such a folder does not exist.

Does anyone know a solution to this little problem?

I have added few custom external links to my menu and they all link to 1 website but with a few subfolders, so the urls look pretty much like this:

website.co.uk/web1/web2/web3/folder1\folder2\folder3

It does not seem to work for me as wordpress changes my site url every time when I click on it to something like this:

website.co.uk/web1/web2/web3/folder1folder2folder3 

(so it removes back slashes from the url)

Of course the website opens but there is no content because such a folder does not exist.

Does anyone know a solution to this little problem?

Share Improve this question edited Jan 15, 2019 at 15:47 fuxia 107k39 gold badges255 silver badges461 bronze badges asked Jan 15, 2019 at 15:44 Edyta KucińskaEdyta Kucińska 111 bronze badge 2
  • I've never seen a website with backwards slashes. Did you try using all forward slashes? – WebElaine Commented Jan 15, 2019 at 16:05
  • Yes. I did try that and it link to the website but it does not show any content. I figured this is down to the website providers (we bought CAFM solution from that company) so I backed the question to them. Thanks a lot! – Edyta Kucińska Commented Jan 16, 2019 at 9:10
Add a comment  | 

1 Answer 1

Reset to default 0

Backslashes (\) are not usually used in URL addresses, so WordPress tries to fix it to correct URL.

I’m almost certain that you should use slashes (/) instead:

http://website.co.uk/web1/web2/web3/folder1/folder2/folder3

Then it should all work correctly.

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far