algolia / algolia/doc-onboarding

External links (github, algolia) break when opened from Sandbox

Open
#147 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
8
Forks
12
PR merge metrics
No merged PRs in 30d

Description

The footer of the sandbox renders links to GitHub and Algolia.
![image](https://user-images.githubusercontent.com/1167842/135489956-54dbf951-d868-4ca6-83dc-8633608d44e2.png)

These links cannot be opened in the same frame:
![image](https://user-images.githubusercontent.com/1167842/135490332-b0df880f-5f5a-4afb-8419-17feb31fbb9c.png)

Error message in browser console:
_Refused to frame 'https://github.com/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'none'"._

Suggested fix: add **target=_blank** to external links to force link opening in new tab.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the Sandbox footer where the GitHub and Algolia links are rendered, and inspect how those external links are opened. Done means both links open in a new tab without triggering the browser Content Security Policy frame error.

Written by the indexing model from the issue text.

Assessment

Tech stack
github
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.