Hook current url in frontend

Hello, everyone.
Hope you are doing well.

I have to display Metabase 's current url in my custom footer.

In my previous React projects, I used to hook current url of React frontend by useLocation hook from react-router-dom.
But in metabase 's package.json, there is not "react-router-dom".

How can I hook current url change ?

Looking forward to your kind consideration.
Best regards.

Hi @danchen327
I would recommend that you spend more time looking through the source code. Metabase is not a small project, and there's still some legacy code.
Sounds like you are asking for the same thing as the postMessage in FullApp embedding: