using the reference implementation of the AdvancedUrlFactory, we are trying to get an URL from the AdvancedUrlFactory with the config parameter "stripWelcomeFileNames" set to true (as it is listed in the documentation).
We are using the parameter together with several others (see code).
AdvancedUrlFactory advancedUrlFactory = new AdvancedUrlFactory(); Map<String, String> config = Map.of( "uselowercase","true", "useregistry","false", "stripwelcomefilenames","true", "usewelcomefilenames","true" ); PathLookup pathLookup = PathLookup.INSTANCE; advancedUrlFactory.init(config, pathLookup); String url = advancedUrlFactory.getUrl(pageRef, selfUrlTemplateSet, language, pageParams);
Now the problem is that "stripWelcomeFileNames" gets ignored:
We also tried camelCase for the parameter but it's still not working.
What are we missing? How do we fix it?
Thank you in advance.
This parameter is not used from the class, but it's used in the infrastructure during the generation process when calculating an URL (or more specific: a link). Only the parameters "usewelcomefilenames" and "uselowercase" have an affect when using the class directly.