Hope this is a very simple question:
I want to create a string containing the full URL of a page on my site, for example:
https://example.com/documents/1
Ideally, I would like to create this in a container with a connect() reduction reaction, in mapStateToProps() . Where is the page a grandson of the responsive Route router using browserHistory (so maybe I can get it from agent-router or browserHistory?) If necessary, I will do this in the fully functional React class.
But I canβt let my life know how to do it. window (as in window.location ) is always undefined in mapStateToProps() (there is no big surprise here) and, in my opinion, the render() component.
So far, I only found ways to access the current route, for example. "/ documents / 1", which is only a relative path and does not contain the URL of the site database ( https://example.com/ )
stone source share