Skip to content

Commit 9d3c4ec

Browse files
authored
refactor: embed our page into an iframe instead of doing a redirect (#3291)
* refactor: encapsulate our page into an iframe instead of doing a redirect * Update build-gh-page.sh * Update build-gh-page.sh
1 parent c2daaab commit 9d3c4ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/scripts/build-gh-page.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ tar -zxf gh-pages -C public --strip-components 1
1616

1717
if [[ $RELEASE == "true" ]]; then
1818
echo "🔃 Change redirect"
19-
echo "<meta http-equiv=\"refresh\" content=\"0; URL=https://"$OWNER_NAME".github.io/"$REPO_NAME"/version/"$NAME"\" />" > public/index.html
19+
echo "<!DOCTYPE html><html lang=\"en\"><head><meta charset=\"UTF-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><title>DB UX Design System Core – latest version</title></head><body style=\"margin: 0;\"><iframe src=\"https://"$OWNER_NAME".github.io/"$REPO_NAME"/version/"$NAME"\" style=\"border: 0;width: 100vw;height: 100vh;\"></iframe></body></html>" > public/index.html
2020
fi
2121

2222
echo "👣 Move out dir"

0 commit comments

Comments
 (0)