alphagov/govuk_content_api — pull request #147 by JordanHatch (2014-01-10 11:57:38+00:00)
Title: Make unencoded slashes work when requesting a tag

Right now, using an unencoded slash character in a URL for a tag ID returns a 404 for the tag, because Sinatra can't correctly match the route. Using` %2F` works, but this gets clobbered by Nginx when you make a request through www.gov.uk.

This changes the route to use a wildcard match, handling the parameters as block arguments instead of using the params hash.