Reverted previous change. Issue was caused by not using clean-urls in the links.