Add support for Discourse style URLs