New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Removing spaces from start of page title #862
Comments
@neonwired I don't understand how to duplicate the issue you are describing. Can you provide instructions on how to reproduce the issue? |
@ryancramerdesign: not sure if that's the issue @neonwired was facing, but this can happen at least when adding pages via the API. Here's a proof of concept:
This creates a page with extra space in the beginning of the title. If you edit this page in the Admin, that space is stripped from the title, and as such you cannot remove it – at least not without making some other change to the title as well. |
Thanks @neonwired @teppokoivula I've pushed a fix for this. |
@neonwired, does Ryan's fix solve the issue for you? |
Ok, closing this - mention me @neonwired if you need it reopening. |
It's impossible to remove a space from the start of a page title, the title field seems to strip it when editing the page but when saving it the space remains.
Expected behavior: Either the title field shouldn't strip it or saving the title should save with the space stripped.
ProcessWire version: 3.0.123
PHP version: 7.2
The text was updated successfully, but these errors were encountered: