Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Exclamation mark after hash (#!) not supported in routes #1504

@nfleury

Description

@nfleury

I'm trying to create a SEO friendly website using angular and by following Google specification for ajax based website (https://developers.google.com/webmasters/ajax-crawling/docs/getting-started).

They say that we should use #! in the url. I know that I also have to return a HTML snapshot of these pages and it is not the issue here.

So I just want something like that: www.mywebsite.com/something/#!/detail/1

The thing is that when using an exclamation mark in the route like that:

when('#!/detail/:id', {controller:DetailCtrl, templateUrl:'detail.html'}).
otherwise({redirectTo:'/other'})

I am always redirected to the otherwise url: "/other" .

I didn't find anything mentionning that using "#!" in url is prohibited. Therefore I just assume this is a bug ?

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