Enables LMS to handle deprecated URLs

LMS-2651
I looked into this - I think it would be cleaner solution, but too much work to do atm.