Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My scroll not working from Footer to homepage #562

Open
zaki-20 opened this issue Aug 20, 2023 · 2 comments
Open

My scroll not working from Footer to homepage #562

zaki-20 opened this issue Aug 20, 2023 · 2 comments

Comments

@zaki-20
Copy link

zaki-20 commented Aug 20, 2023

i have a home page and inside the home page, my scroll works, and when it successfully scroll to footer but in footer i also give Link to my text and want to scroll ack to home but it does not work, just facing issue in my Footer component

@fisshy
Copy link
Owner

fisshy commented Aug 21, 2023

Could you provide a codepen/plunkr demonstrating the issue?

@XinwenCheng
Copy link

Hi @fisshy , I think I have the same issue with @zaki-20 , please check my attachment.

There're two Links in the nav component, Anchor 1 can scroll to destinate element when you're on http://localhost, but when you're on http://localhost/next-page, Anchor 2 doesn't work, you can't redirect back to index page and scroll to the element which has id of '#anchor'.

to cannot be redirected to another page, it's inconvenient for use.

react_scroll_demo.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants