Add check if extension is active before redirecting the user