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:
@@ -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"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user