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:
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user