Enhanced routing urgent issue fix

The safe_pages array was static, now dynamic according to your controllers