WordPress.org

Ready to get started?Download WordPress

Forums

Relative URL
[resolved] double slash in home_url (2 posts)

  1. edik
    Member
    Posted 1 year ago #

    Hi,
    I am using your plugin. For a search form my theme calls the function home_url with the path argument:
    home_url ( '/' );
    But instead of "/" I receive "//". My search form is broken. :D

    Yes, I know: Calling home_ur('/') is like calling home_url(). But such a call is legit and I do not want to edit my theme code for such a issue. :)

    Can you fix it? Thank you :D

    http://wordpress.org/extend/plugins/relative-url/

  2. edik
    Member
    Posted 1 year ago #

    Shame on me!
    The theme code is the problem..
    home_url ( '/' ) . '/'

    sorry :D

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic