## 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
invited_email = "jane@acme.com"
        signup_token = "abcd1234"
        organization, team, user = User.objects.bootstrap(
            "test", "adminuser@posthog.com", None, team_fields={"signup_token": signup_token}
        )
        
        with self.settings(TEST=False):
            response = self.client.post(
                f"/signup/{signup_token}",
                {"name": "Jane", "email": invited_email, "password": "hunter2", "emailOptIn": "",},
                follow=True,
            )
        self.assertRedirects(response, "/")
        self.assertEqual(organization.members.count(), 2)
        self.assertTrue(
            OrganizationMembership.objects.filter(organization=organization, user__email=invited_email).exists()
        )
class TestUrlsLoggedIn(BaseTest):