Skip to content

ui-router unexpectedly cuts href value in a <base> tag #2357

@TheProdigyFilippo

Description

@TheProdigyFilippo

Hello,

During my work on making angular app SEO friendly and replacing '#' with html5mode, I've noticed that ui-router cuts base href's last letter resulting in unusable application. For example when we set

<base href="/application">

hyperlinks <a ui-sref="someState" results in http://domain/applicatio/someState instead of http://domain/application/someState. It eats 'n'. Generaly it eats last letter no matter what we have in href.

Example available in plunkr: http://plnkr.co/edit/Gl7hVXA64ssfunHCt7ib?p=preview

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions