Repository navigation
#12913 Share button is not visible in sidebar in default map - #12914
Conversation
| geostoryResourceSelector, | ||
| currentContextSelector | ||
| ], (mapId, dashboard, geostory, context) => { | ||
| const isDefaultMap = location.pathname === "/"; |
There was a problem hiding this comment.
I think we cannot rely on the location pathname to decide if a plugin is visible or not, in addition location refer to the window location and in MapStore we are using the hash router so this will not work with subpath.
Here I created a proposal PR Binabh#1 to merge into this branch, where instead we detect if a map is new, and when is new the share plugin will be hidden. Please double check and verify the code proposed
|
@allyoucanmap Thank you for your feedback. Yes having a dedicated isNew value will surely be more reliable. While testing I found one thing that share plugin shows up in
Screen.Recording.2026-09-29.at.15.48.55.mov |
|
@ElenaGallo please test this fix on dev, thanks |
|
Git push to origin failed for 2025.02.xx with exitcode 1 |
|
Request failed due to following response errors:
|
|
Successfully created backport PR for |
…#12921) --------- (cherry picked from commit 5613d59) Co-authored-by: Binabh <[email protected]> Co-authored-by: allyoucanmap <[email protected]>
--------- Co-authored-by: allyoucanmap <[email protected]>
Description
Show share plugin in default map at
/routePlease check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x", remove the others)
Issue
What is the current behavior?
#12913
What is the new behavior?

Share button is now visible
Breaking change
Does this PR introduce a breaking change? (check one with "x", remove the other)