Details
- 
    
Bug
 - 
    Resolution: Duplicate
 - 
    
Major
 - 
    None
 - 
    4.1.2
 
- 
        Unknown
 - 
        N/A
 - 
        N/A
 - 
        
 
Description
The configuration says :
#-# The name of the default page of a space. This is displayed when the URL specifies a space, but not a document, or neither.
While this parameters actually permits to not write the document name part of a URL when it matches this parameter. Example, if set to "WebHome", URL of space home pages will be serialized without the name part (i.e. "/Sandbox/" and not "/Sandbox/WebHome").
In addition, there is a bug/mistake associated to this behavior, is that the default value taken for this parameter in XWiki.java#getDefaultPage is "Main" and not "WebHome". This explain why when not configured specifically, XE actually writes the WebHome page of URLs.