added functionality so that deep linking works on a cold hit