Johannes Weberhofer Posted November 7, 2017 Share Posted November 7, 2017 Dear all, is there a simple way to increase the size a urlSegment can have to lets say 200 characters? Thanks for your help, Johannes Link to comment Share on other sites More sharing options...
Robin S Posted November 7, 2017 Share Posted November 7, 2017 Welcome to the forums @Johannes Weberhofer It looks like it isn't possible to increase the allowed length of a URL segment. This is because when a URL segment is set, the value is passed through $sanitizer->name() or $sanitizer->pageNameUTF8() depending on if $config->pageNameCharset = 'UTF8' is set. For $sanitizer->name() at least (I had some trouble debugging $sanitizer->pageNameUTF8) the maxLength option defaults to 128, and although that method allows a custom maxLength to be used there is no option to specify this for URL segments. I can't see why a URL segment needs to be limited to 128 characters and it would be nice to have the ability to set a higher max length. Maybe you could open a feature request at GitHub? 2 Link to comment Share on other sites More sharing options...
Johannes Weberhofer Posted November 8, 2017 Author Share Posted November 8, 2017 Thanks @Robin S for the warm welcome! I have created a ticket at https://github.com/processwire/processwire-requests/issues/130 2 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now