Jump to content

Issue with page()->url('+')


Zeka
 Share

Recommended Posts

Hi. 

I have an issue with $page->url('+') and $page->url('-') where produce wrong URLs like site.com/some-page/-/page1/ and not site.com/some-page/page1/ etc.

I have tested it on the latest dev version. 

I tracked down it to this line https://github.com/processwire/processwire/blob/d8945198f4a6a60dab23bd0462e8a6285369dcb9/wire/core/PageTraversal.php#L616

I think that there should be addition check like

'urlSegmentStr' => is_string($options) && !in_array($options, array('+', '-')) ? $options : '',

Before opening an issue I would like to ask to confirm it.

Thansk. 

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...