Skip to content

Support relative paths for MatIcon based on baseUrl #4263

@zmanring-zz

Description

@zmanring-zz

Bug, feature request, or proposal:

The icons URL's seem to all be absolute based on /assets which works fine when you're in the root but when you need the icons to be relative it doesn't work.

What is the expected behavior?

The icons to be served up relative to the baseUrl

What is the current behavior?

Not relative, all absolute.

What are the steps to reproduce?

Deploy code into a sub-folder on s3 or alike

What is the use-case or motivation for changing an existing behavior?

My app assets are stored in a sub-folder and the svgs cannot be found there

Which versions of Angular, Material, OS, browsers are affected?

Angular 4.x | Material 2.x Beta 3 | Mac

Is there anything else we should know?

Keep up the good work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: material/iconfeatureThis issue represents a new feature or feature request rather than a bug or bug fixneeds: discussionFurther discussion with the team is needed before proceeding

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions