The slug from this is the one already computed on the backend. This happens
when a dash is loaded and then stored as a favorite. We're ensuring that
the slug is stored in local-storage so it can be loaded. We use the slug as
the unique dash identifier on a per-user basis.



On Thu, May 15, 2014 at 1:49 PM, rmca <notifications@github.com> wrote:

> In src/app/services/playlistSrv.js:
>
> > @@ -43,7 +43,8 @@ function (angular, _, kbn) {
> >
> >        favorites.dashboards.push({
> >          url: $location.path(),
> > -        title: dashboard.current.title
> > +        title: dashboard.current.title,
> > +        slug: dashboard.current.slug
>
> Can't we compute the slug given the title on the backend, meaning we could
> remove this change?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/metricfire/grafana/pull/2/files#r12703205>
> .
>