Ensure pages scroll to the top on navigation and update content

Implement a global scroll-to-top component for all page navigations and update existing article content via database seeding.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 23852c00-4779-460a-9e0c-d09fee4b6c92
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 200b6518-4814-45b7-85de-b6af1979176c
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/f209e72a-0939-48fa-84fc-57854de71967/23852c00-4779-460a-9e0c-d09fee4b6c92/ee1CXlO
Replit-Helium-Checkpoint-Created: true
This commit is contained in:
sebastjanartic
2026-03-06 14:48:14 +00:00
parent 15189733b9
commit cdfa0ae32d
3 changed files with 42 additions and 23 deletions
-4
View File
@@ -165,10 +165,6 @@ export default function ArticlePage() {
};
}, [article, articleUrl, articleImage]);
useEffect(() => {
window.scrollTo(0, 0);
}, [slug]);
useEffect(() => {
if (!article?.content) return;
if (article.content.includes("instagram.com")) {