Merge pull request #21385 from dimisjim/fix-gcp-project-details-links

[gcp-projects] fix query params for links pointing to "GCP" & "Logs" in Project Details Page
This commit is contained in:
Fredrik Adelöw
2023-12-13 19:11:49 +01:00
committed by GitHub
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-gcp-projects': patch
---
Fix query parameter for project details page which should point to projectId rather than project name
@@ -126,7 +126,7 @@ const DetailsPage = () => {
{details?.name && (
<Button>
<a
href={`${cloud_home_url}/home/dashboard?project=${details.name}&supportedpurview=project`}
href={`${cloud_home_url}/home/dashboard?project=${details.projectId}&supportedpurview=project`}
target="_blank"
rel="noreferrer noopener"
>
@@ -137,7 +137,7 @@ const DetailsPage = () => {
{details?.name && (
<Button>
<a
href={`${cloud_home_url}/logs/query?project=${details.name}&supportedpurview=project`}
href={`${cloud_home_url}/logs/query?project=${details.projectId}&supportedpurview=project`}
target="_blank"
rel="noreferrer noopener"
>