## How to reproduce

1. Log out
2. Open a specific PH link (e.g. https://<PH instance>/person/338)
3. Login

## Expected behavior

I expect it to take me to the page I was intending to go to when I was logged out and not "Insights" page.

## Actual behavior

It takes me to the https://<PH instance>/insights...

## Environment

- PostHog cloud or self-managed? self-hosted
- PostHog version/commit: 1.17.0
posthog/test/test_urls.py
super().setUp()
        self.client = Client()
    def test_logout_temporary_token_reset(self):
        
        invited_email = "jane@acme.com"
        organization, team, user = User.objects.bootstrap("test", "adminuser@posthog.com", None)
        invite = OrganizationInvite.objects.create(organization=organization, target_email=invited_email)
        
        with self.settings(TEST=False):
            response = self.client.post(
                f"/signup/{invite.id}",
                {"name": "Jane", "email": invited_email, "password": "hunter2", "emailOptIn": "",},
                follow=True,
            )
        self.assertRedirects(response, "/")
        
        user = User.objects.get(email=invited_email)
        user.temporary_token = "token123"
        user.save()
        
        user = User.objects.get(id=user.id)
        self.assertEqual(user.temporary_token, "token123")
        
        with self.settings(TEST=False):
            response = self.client.post("/logout", follow=True,)
            self.assertRedirects(response, "/login")
        
        user = User.objects.get(id=user.id)
        self.assertEqual(user.temporary_token, None)
    def test_invitation_signup_token(self):