• I’ve created a menu that will direct the user to an external journal site. Because the journal site runs in a few different languages, the custom URL has to include a parameter with “%2F” to direct the user to a particular language that corresponds to the current language of the WordPress site.

    However, with the “%2F” within the URL, WordPress sends the user back to my WordPress home page, not the external journal site.

    The URL that I want to use is:
    eible-journal.org/index.php/APJHLB/user/setLocale/en_US?source=%2Findex.php%2FAPJHLB

    What’s going on?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi, I’m guessing that the HTML code for the link in your menu looks like this:

    <a href="eible-journal.org/index.php/APJHLB/user/setLocale/en_US?source=%2Findex.php%2FAPJHLB">link</a>

    Without “http://&#8221; in front, the browser will assume the link as relative to your WordPress site and not an absolute link. The correct HTML code would be:

    <a href="http://eible-journal.org/index.php/APJHLB/user/setLocale/en_US?source=%2Findex.php%2FAPJHLB">link</a>

    Feel free to correct me if I’m wrong and include the relevant code from your menu so that we can debug it together 🙂

    Thread Starter Newtonite

    (@newtonite)

    It’s a link that I fill in the “Custom Link” box, so there is no “link” that I need to enter.

    In any event, the URL does contain the “http://&#8221; in front, and it still doesn’t work. It takes the user straight back to the website.

    Could you provide the link to the page on your website that has this error?

    Thread Starter Newtonite

    (@newtonite)

    It’s bioethics10.cafe24.com .

    Select “Journal” from the menu, and you’ll see the error.

    It would seem that the redirection is caused by a script on the external journal site to perhaps prevent hotlinking.

    The path user/setLocale might be protected in server-side code such that if the request is coming from another website, reject and redirect back to that other website. It will only work if the user type it out in the address bar or use the language selector on the website itself.

    You may wish to approach the owner of the external journal website.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WordPress can't seem to resolve a URL with "/"’ is closed to new replies.