Jump to content

$page->httpUrl doesn't respect slashUrls


gmclelland
 Share

Recommended Posts

I'm just curious why $page->httpUrl returns

mysite.dev/about-us/

When it should return

mysite.dev/about-us

when the template's settting "Should page URLs end with a slash?" is set to "No"

I also noticed $page->url returns correctly

mysite.dev/about-us

 

Is that a bug with $page->httpUrl in the Processwire API or am I missing something?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...