json generator fixes: .html, lowercase short name

The link was getting .html added, but the id was not. The difference
caused the json for the page to not be found; id must match hash!!
The value for the base filter was uppercase, but needed to be returned
as lowercase to be used.