Martin Yde - Added extra check for url in preprocess page