Enables LMS to handle deprecated URLs

LMS-2651
this is wild code. I actually don't think we're using this function anywhere - can you verify?