Update apps/web/src/hooks/useTaskHash.ts

Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
This commit is contained in:
Matt Rubens 2025-07-07 22:41:11 -04:00 committed by GitHub
parent d6a4ee6d2f
commit 85ade4505d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,7 +22,7 @@ export const useTaskHash = (): TaskHashState => {
// Set task hash in URL
const setTaskHash = useCallback((taskId: string | null) => {
if (taskId) {
window.location.hash = `task-${taskId}`;
window.location.hash = `#task-${taskId}`;
} else {
// Clear hash without triggering scroll
const url = new URL(window.location.href);