Skip to content

PM-6266: Open gig advice links in new tabs - #2250

Open
jmgasper wants to merge 1 commit into
devfrom
PM-6266
Open

PM-6266: Open gig advice links in new tabs#2250
jmgasper wants to merge 1 commit into
devfrom
PM-6266

Conversation

@jmgasper

@jmgasper jmgasper commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

What was broken

Clicking the profile, forum or opportunity advice links on the gig details page replaced the gig page instead of opening a new tab.

Root cause

The platform-ui port omitted the new-tab targets present in the legacy gig advice links.

What was changed

  • Add target="_blank" and rel="noopener noreferrer" to all three advice links.
  • Preserve existing destinations, gig navigation and email behavior.
  • Update the component documentation and Gigs README.

Files: src/apps/gigs/src/pages/GigDetailsPage.tsx, src/apps/gigs/src/pages/GigDetailsPage.spec.tsx, and src/apps/gigs/README.md.

Any added/updated tests

Added three component regression cases covering signed-in and anonymous profile destinations, all three advice links, and existing navigation/email links.

Validation after nvm use:

  • yarn lint — passed.
  • yarn run build — passed with existing project warnings.
  • yarn test:no-watch --runInBand --watch=false --runTestsByPath src/apps/gigs/src/gigs.utils.spec.ts src/apps/gigs/src/gigs.service.spec.ts src/apps/gigs/src/components/GigApplicationForm.spec.tsx src/apps/gigs/src/pages/GigDetailsPage.spec.tsx — all 18 tests across four suites passed.
  • node /tmp/PM-6266-validation/browser.cjs — a temporary Chromium fixture using the real page component and mocked data/destinations reproduced the baseline same-tab bug and passed 12 new-tab click checks at 1280px and 390px widths for signed-in and anonymous visitors. Each click preserved the original gig page and opened a tab without an opener.

What was broken
The gig details profile, forum and opportunity advice links replaced the gig
page instead of opening in a new tab.

Root cause
The platform-ui port omitted the new-tab targets present in the legacy gig
advice links.

What was changed
Add target="_blank" and rel="noopener noreferrer" to all three advice links.
Preserve their destinations and existing gig navigation and email behavior.
Update the component documentation and Gigs README.

Any added/updated tests
Add three GigDetailsPage regression cases covering signed-in and anonymous
profile destinations, all three advice links, and existing navigation/email
links. All 18 tests across the four gig suites pass. Yarn lint and the production
build pass. A Chromium fixture using the real page component reproduces the
baseline bug and passes 12 new-tab click checks across desktop/mobile widths
and signed-in/anonymous states.
@jmgasper
jmgasper requested a review from kkartunov as a code owner September 8, 2026 09:26
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.

1 participant