trim spaces in title, before using it as path
I have a simple problem, but nothing I've tried has worked.
When users paste text into the title of a new document, they sometimes pick up an extra space. Nuxeo takes the title and uses it as the document path, but then users get various 404 errors because some webui links trim that extra space.
Can somebody point me to a simpler solution? All I want to do is strip out the spaces before nuxeo uses that as my doc path. I guess I could do it in the create layout, but I really don't want to do that for every document type's layout. I would even settle for nonsense paths at this point, like random numbers. Our users don't care that much about the path, but they do get frustrated by the surprise 404 errors.