Skip to content

site.com/routed/url#scrollTo with named anchors, $anchorScroll, $location.hash, html5mode? #651

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
braco opened this issue Dec 7, 2013 · 1 comment

Comments

@braco
Copy link

braco commented Dec 7, 2013

I'm using html5mode with ui-router.

Let's say my route is this:

site.com/routed/url
(or non-html5mode: site.com/#routed/url)

and I want to enter the site with a named anchor or DOM element:

site.com/routed/url#something

but ui-router will eat this up and redirect to

site.com/routed/url

How can I stop this? Do I need to do something hacky with parameter names and watching state transitions?

@nateabele
Copy link
Contributor

Duplicate, see #612.

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

2 participants