[PR #1242] [MERGED] fix: sidebar not updating UI when pathname changes #29312

Closed
opened 2026-04-17 20:40:40 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1242
Author: @ping-maxwell
Created: 1/18/2025
Status: ✅ Merged
Merged: 1/18/2025
Merged by: @Bekacru

Base: main ← Head: fix/docs/navigation-reflect-sidebar


📝 Commits (1)

  • 787740e fix: sidebar not updating UI when pathname changes

📊 Changes

1 file changed (+6 additions, -6 deletions)

View changed files

📝 docs/components/side-bar.tsx (+6 -6)

📄 Description

Clicking on links or buttons which redirect the path doesn't update the sidebar UI.
This PR fixes this.

Before

1.

https://github.com/user-attachments/assets/0738f6a1-dac8-490d-ae1e-c2741f3846df

2.

https://github.com/user-attachments/assets/cdd0b4b3-0d77-4a62-96ad-bd9ecaac5c28

After

1.

https://github.com/user-attachments/assets/f869d1df-ee84-434d-b599-f0af78abbbf2

2.

https://github.com/user-attachments/assets/d5fd5e84-fbf2-49f3-82d8-a174ba1da62a


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/1242 **Author:** [@ping-maxwell](https://github.com/ping-maxwell) **Created:** 1/18/2025 **Status:** ✅ Merged **Merged:** 1/18/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `fix/docs/navigation-reflect-sidebar` --- ### 📝 Commits (1) - [`787740e`](https://github.com/better-auth/better-auth/commit/787740ef0755159c2351e08455053137b79b0d3a) fix: sidebar not updating UI when pathname changes ### 📊 Changes **1 file changed** (+6 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `docs/components/side-bar.tsx` (+6 -6) </details> ### 📄 Description Clicking on links or buttons which redirect the path doesn't update the sidebar UI. This PR fixes this. # Before ## 1. https://github.com/user-attachments/assets/0738f6a1-dac8-490d-ae1e-c2741f3846df ## 2. https://github.com/user-attachments/assets/cdd0b4b3-0d77-4a62-96ad-bd9ecaac5c28 # After ## 1. https://github.com/user-attachments/assets/f869d1df-ee84-434d-b599-f0af78abbbf2 ## 2. https://github.com/user-attachments/assets/d5fd5e84-fbf2-49f3-82d8-a174ba1da62a --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-17 20:40:40 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#29312