Malformed url display in the log details of reports screen

Avatar
  • updated
when viewing the log details & hits the URL is often malformed when displayed, eg in the URLbelow the / and space after qs_searchReult_tbp shouldnt be there and also the space after storeid= shouldnt be there
/webapp/wcs/stores/servlet/qs_searchResult_tbp/ ?filters=9books|2a4&searchTerm=sticker+books&storeId= 10001
when we view the actual apache log the URL is correct without the extra / and spaces
Avatar
Michael
The spaces are added to ensure that long URLs are correctly wrapped in all browsers. However, the URLs of links don't include spaces and work correctly. We'll consider using other HTML tags instead of spaces in future versions of the program.

The slash is added after the file name because the program considers file names without extensions to be directory names. Directories like http://www.domain.com/dir/ can be requested with slash at the end and without it like http://www.domain.com/dir, so if the program determines that a file doesn't contain an extension, it adds a slash to count requests for /dir and /dir/ together.