Encode spaces in URLs of files in content catalog
If the URL of any file in the content catalog contains spaces, those spaces should be encoded as %20
. This ensures that the HTML page that uses those URLs will validate. The properties that are affected are file.src.url
, file.src.editUrl
, and .file.src.origin.editUrlPattern
For example, the URL /component/version/module/i like spaces.html
should be encoded as /component/version/module/i%20like%20spaces.html
.
(This demonstrates one more example of when file.out.path and file.pub.url are different).
Although it's not recommended to use spaces in the component, version, or module name, go ahead an encode spaces that appear anywhere in the URL rather than looking for spaces only in the path segment.