Skip to content

#2608: Integrate Share plugin - #2701

Merged
allyoucanmap merged 4 commits into
GeoNode:masterfrom
dsuren1:#2608_share
Oct 30, 2026
Merged

allyoucanmap merged 4 commits into
GeoNode:masterfrom
dsuren1:#2608_share

Conversation

@dsuren1

@dsuren1 dsuren1 commented Oct 14, 2026

Copy link
Copy Markdown

Description

This PR integrates Share plugin

Issue

Screenshot

image image image image image

@dsuren1 dsuren1 added this to the 5.2.0 milestone Oct 14, 2026
@dsuren1
dsuren1 requested a review from allyoucanmap October 14, 2026 06:34
@dsuren1 dsuren1 added enhancement New feature or request master labels Oct 14, 2026
@dsuren1 dsuren1 linked an issue Oct 14, 2026 that may be closed by this pull request
Comment thread geonode_mapstore_client/views.py Outdated
if query_string:
separator = "&" if "?" in url else "?"
url = f"{url}{separator}{query_string}"
return redirect(url)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why we need to implement this the uuid path is already supported e.g. https://stable.demo.geonode.org/catalogue/uuid/cfc35fc2-b8e9-11ec-a50e-0242ac150006

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GeoNode core view uses return redirect(resource) which calls resource.get_absolute_url(), which drops incoming query parameters. This causes shared map URLs to lose view parameters such as bbox, center, and zoom. This override preserves the query string.
Alternatively, we could submit the fix to GeoNode core and remove the override once merged.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@giohappy suggested it's better to have this in Geonode core, so I will create a PR in core and cleanup this change from the client

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated Geonode core with PR GeoNode/geonode#14736

@allyoucanmap

Copy link
Copy Markdown

are you sure the coordinate and zoom params are working in geonode?

@dsuren1

dsuren1 commented Oct 29, 2026

Copy link
Copy Markdown
Author

are you sure the coordinate and zoom params are working in geonode?

Yes, with override function preserving params, it does

share-client.mp4

@dsuren1
dsuren1 requested a review from allyoucanmap October 29, 2026 08:34
@allyoucanmap
allyoucanmap merged commit b338daa into GeoNode:master Oct 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request master

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Introduce the share plugin in GeoNode

2 participants