App Router - Scrolled intercepted routes
Unanswered
California Gull posted this in #help-forum
California GullOP
Hi all.
I'm using the interecepted route to provide a "in context" navigation from the searchresult of my page. The structure looks a bit like this:
I understand that interception routes are great for modals which do not change or have an impact on the interecepted layout's scroll offset. Is it intended to use this pattern for larger intercepted pages which will change/impact the layout's scroll offset? If so we might have a bit of a bug where the scroll offset is shared across the intercepting page and it's intercepted layout.
Please advise 🙂
I'm using the interecepted route to provide a "in context" navigation from the searchresult of my page. The structure looks a bit like this:
- layout
page
- product
page
- search
- (..)product
page
pageI understand that interception routes are great for modals which do not change or have an impact on the interecepted layout's scroll offset. Is it intended to use this pattern for larger intercepted pages which will change/impact the layout's scroll offset? If so we might have a bit of a bug where the scroll offset is shared across the intercepting page and it's intercepted layout.
Please advise 🙂
1 Reply
California GullOP
for reference, this only happens when there's a sticky element in the parent layout. related to https://github.com/vercel/next.js/issues/47475