Add custom external link to menu

admin2025-06-04  5

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.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1749008429a315574.html

最新回复(0)