Skip to content

Commit 3d72e7a

Browse files
SCAL-288542-2 redirected introduvtion for graphql page
1 parent 6ab5842 commit 3d72e7a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/components/VersionIframe/index.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@ const VersionIframe: React.FC<VersionIframeProps> = ({
2222
if (mainUrlParams.has('pageid')) {
2323
url.searchParams.set('pageid', mainUrlParams.get('pageid'));
2424
const pageId = mainUrlParams.get('pageid');
25-
if (pageId === 'graphql-play-ground') {
26-
// Edge case for graphql-play-ground page
27-
url.pathname = 'docs/graphql-play-ground/';
28-
} else {
25+
if (pageId !== 'graphql-play-ground') {
2926
const pageIdSplit = pageId.split('__');
3027
if (pageIdSplit.length > 1) {
3128
// Tutorials module pages have pageids like {subdirectory}_{real_url_ending}, must be split to generate matching URL

0 commit comments

Comments
 (0)