epimorphics / elda

Epimorphics implementation of the Linked Data API
Other
53 stars 27 forks source link

reverse lookup does not respect formatter suffixes #141

Open ehedgehog opened 9 years ago

ehedgehog commented 9 years ago

When Elda searches for a matching URI template, it tries both with and without formatter suffixes. If it fails, it then looks for an intem rtemplate to run in reverse, but does not take account of any prefent formatter prefix. Hence if the URI spoo.html does not match it trys a reverse lookup on spoo.html but NOT plain spoo; the intended redirect does not happen and the result is a 404.

RouterRestlet should try both with and without the suffix, or possibly, just strip the formatter suffix and look up what is left.