Skip to content

URLs with #fragments not jumping to correct element #2128

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

Closed
vike27 opened this issue Jul 25, 2015 · 5 comments
Closed

URLs with #fragments not jumping to correct element #2128

vike27 opened this issue Jul 25, 2015 · 5 comments

Comments

@vike27
Copy link

vike27 commented Jul 25, 2015

Not working for me, goes to correct page with correct fragment but does not jump to anchor.

<a id="yoh">GOING HERE!<a> 
<a class="pull-right" ui-sref="reserve({ '#':'yoh' })"><strong>Edit</strong></a>

Saw this referenced in: #1855 & here: #1867

@bertonha
Copy link

Any workaround can be make?

@vike27
Copy link
Author

vike27 commented Jul 27, 2015

@bertonha Hmm no, idk why this is not working. Did I make a mistake or something?

@bertonha
Copy link

@vike27 on my case the place here it should go, Is hidden and need to the show first. This way works Perfect.

@vike27
Copy link
Author

vike27 commented Jul 27, 2015

@bertonha actually I just realized that it is working on initial page load since its done at the html level. As soon as the rest of the angular code gets injected and the rest of the angular template gets loaded it gets pushed down essentially eliminating the effect. I would need to create a timeout function or something so it works properly. Too much hastle, would think there would be a simpler way to get this to work.

@eddiemonge
Copy link
Contributor

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

No branches or pull requests

3 participants