넥스트 경험 클라이언트 측 스크립팅 전역 변수
넥스트 경험 전역 변수는 클라이언트 스크립트에서 페이지에 적용되는지 여부를 넥스트 경험 결정하는 데 사용됩니다.
- NOW.isUsingPolaris
- 현재 페이지에 적용되는 경우 넥스트 경험예를 반환합니다.
- NOW.isPolarisWrapper
- 페이지가 에서 실행 중인 경우 예를 반환합니다.넥스트 경험 통합 탐색 이 전역 변수는 오직 통합 탐색에 있습니다.
통합 탐색에 대한 자세한 내용은 사용 넥스트 경험 통합 탐색 문서를 참조하십시오.
클라이언트 스크립트:
// Reload the current page in the unified navigator if not currently in the unified nav
if (NOW.isUsingPolaris && (!top.NOW || top.NOW.isPolarisWrapper !== "true")) {
var currentPath = window.location.pathname + window.location.search;
top.window.location.href = "/now/nav/ui/classic/params/target/" + encodeURIComponent(currentPath)
}