See my comments below about having the URL regex do this work.