Skip to content

Conversation

@dhairya1702
Copy link

Description

Added a new LinkToWebmap component under src/common/ that opens the Treetracker web map in a new tab using target="_blank" and rel="noopener noreferrer" for improved user experience and security.

Issue(s) addressed

What kind of change(s) does this PR introduce?

  • Enhancement
  • Bug fix
  • Refactor

Please check if the PR fulfils these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Issue

What is the current behavior?

The link to the web map previously opened in the same browser tab, taking users away from the admin panel.

What is the new behavior?

The new LinkToWebmap component opens the web map in a new tab using target="_blank" and rel="noopener noreferrer", improving usability and following security best practices.


Breaking change

Does this PR introduce a breaking change?

No breaking changes introduced.


Other useful information

Tested locally by rendering the LinkToWebmap component on the login screen to verify that it opens the correct map URL (https://map.treetracker.org) in a new browser tab.

@dhairya1702 dhairya1702 requested a review from a team as a code owner October 27, 2025 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Further improvement of the species list

2 participants