Skip to content

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

@braco

Description

@braco

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions