# Access to breadcrumb in request object when overriding routes

**URL:** <https://community.forestadmin.com/t/access-to-breadcrumb-in-request-object-when-overriding-routes/441>\
**Category:** Help me!\
**Created:** [June 9, 2020, 11:55pm UTC](https://community.forestadmin.com/t/access-to-breadcrumb-in-request-object-when-overriding-routes/441 "2020-06-09T23:55:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![yeti182](https://avatars.discourse-cdn.com/v4/letter/y/858c86/32.png) [@yeti182](https://community.forestadmin.com/u/yeti182)\
**Post date:** [June 9, 2020, 11:55pm UTC](https://community.forestadmin.com/t/access-to-breadcrumb-in-request-object-when-overriding-routes/441/1 "2020-06-09T23:55:55Z")

</div>

Hi All -

Is there a way to access the FA user’s current breadcrumb location from within a route override? We’re trying to save a secondary association but need to know the FA user’s navigation location set that association up correctly. Thanks!

Adam

---

<div class="post-metadata">

**Author:** ![Sliman\_Medini](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/sliman_medini/32/19_2.png) [@Sliman\_Medini](https://community.forestadmin.com/u/Sliman_Medini)\
**Post date:** [June 10, 2020, 8:39am UTC](https://community.forestadmin.com/t/access-to-breadcrumb-in-request-object-when-overriding-routes/441/2 "2020-06-10T08:39:59Z")

</div>

Hi @yeti182,

Can you please elaborate, maybe in a more functional way, the task you are trying to achieve?

Thanks

---

<div class="post-metadata">

**Author:** ![yeti182](https://avatars.discourse-cdn.com/v4/letter/y/858c86/32.png) [@yeti182](https://community.forestadmin.com/u/yeti182)\
**Post date:** [June 10, 2020, 1:09pm UTC](https://community.forestadmin.com/t/access-to-breadcrumb-in-request-object-when-overriding-routes/441/3 "2020-06-10T13:09:18Z")

</div>

Hi @Sliman_Medini -

Sure thing. We have a few model classes that each have two separate N:M polymorphic associations. Sequelize provides the necessary values for the link table for one of those associations when we save a new instance in FA. However, we need to populate the link table with a second set of values for the second association.

As an example, imagine metadata that can be assigned to either a book or a movie. In addition, that metadata can belong to a user or a group (all these are belongsToMany associations in Sequelize). If we’re creating metadata for a book that, in our use-case, is currently checked out to a user, Sequelize provides FA the values to fill in the Metadata \<-\> Book relationship, but not the Metadata \<-\> User relationship.

If we had access to the breadcrumbs, we’d be able to see if the book metadata was being created after drilling down through a user or a group and correctly set up that second association.

Hope this helps!

Adam

---

<div class="post-metadata">

**Author:** ![Sliman\_Medini](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/sliman_medini/32/19_2.png) [@Sliman\_Medini](https://community.forestadmin.com/u/Sliman_Medini)\
**Post date:** [June 10, 2020, 1:29pm UTC](https://community.forestadmin.com/t/access-to-breadcrumb-in-request-object-when-overriding-routes/441/4 "2020-06-10T13:29:39Z")

</div>

Thanks you for this explanation, I start to see more 🙂

I understood you can simplify your model like this: User 1 ----\> \* Tag \* \<---- 1 Book  
So:  
-One book has many tags  
-One user has many tags

To go further, can you please share more elements?  
-your db schema and your forest model  
-the description of the use-case you want to achieve (since I am still not sure about it sorry)

---

<div class="post-metadata">

**Author:** ![yeti182](https://avatars.discourse-cdn.com/v4/letter/y/858c86/32.png) [@yeti182](https://community.forestadmin.com/u/yeti182)\
**Post date:** [June 10, 2020, 1:45pm UTC](https://community.forestadmin.com/t/access-to-breadcrumb-in-request-object-when-overriding-routes/441/5 "2020-06-10T13:45:20Z")

</div>

Hi @Sliman_Medini -

Thanks for your response. I’ve been abstracting away from our actual schema to protect our implementation’s details, but to clarify the associations: a book may be owned by either a user OR a group; a metadatum may be owned by a user OR a group; a metadataum may be assigned to either a book OR a movie.

We’re a premium customer and I’ve worked with @anon36130554 with this setup previously, so I think we’ll have to take this out of the public community to discuss further. I’ll reach out through support channels and go from there.

Thanks again for your help,

Adam

---

<div class="post-metadata">

**Author:** ![anon36130554](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@anon36130554](https://community.forestadmin.com/u/anon36130554)\
**Post date:** [June 15, 2020, 1:42pm UTC](https://community.forestadmin.com/t/access-to-breadcrumb-in-request-object-when-overriding-routes/441/6 "2020-06-15T13:42:35Z")

</div>

Hello @yeti182 👋

Sadly we do not provide any information regarding the breadcrumbs (or actual navigation history through data) in our requests to your generated project.

However, I see how helpful it could be for you in this case, and this looks like a feature that might serve others too.

I have pushed this feature request to our productboard 🙌

Sorry for the inconvenience, and thanks a lot for your feedback 😃

Steve.
