home_url() returns url without slash in the end
-
Hi!
I’ve got faced with a small issue – url of homepage on different langs is:
https://example.com/en/
https://example.com/ge/
https://example.com/cz/
etc.BUT! home_url() returns:
https://example.com/en
https://example.com/ge
https://example.com/czI could add “/” after the function call, but the native lang homepage is https://example.com and than I get https://example.com/
Yeah, I could use IF statement, but it seems strange if you create the url.
Maybe I’m wrong, any help will appreciated.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘home_url() returns url without slash in the end’ is closed to new replies.