📚 Welcome to the new Median docs! We've moved to a new documentation platform and some page URLs have changed, so please update your bookmarks. Spot a broken link or missing page? Contact support or raise an issue on GitHub.
Open pages in new windows with a Back button for multi-level navigation, configured in App Studio or at runtime with the JavaScript Bridge.
Many widely used apps ranging from news apps to banking apps provide a hierarchical or multi-level navigation experience for users. This allows users to view specific page(s) and easily return to the same place on the prior page by way of a ”< Back” button in the top navigation bar.For example, a news app may have various categories such as “Local News”, “International”, “Business”, “Sports”, “Lifestyle” defined as level 2. When a user clicks a category, they will see news articles in that category which they can open and browse. At any time they can press ”< Back” in the top nav bar to return to the front page.Median allows you to configure this user experience easily by assigning individual pages or groups of pages to a Level by creating rules. When clicking a link to a page that has been assigned a higher level, the link will open in a new window within the app. The top navigation bar will show a ”< Back” button on the left to allow easy navigation to the lower level page even if the user has navigated elsewhere in that current level. The top navigation bar will show the page name in the center but this can be changed using the Dynamic Titles configuration.See below for an example.
Auto new windows example
Navigation historyWhen a page that is assigned a higher level opens in a new window within your app, it will not have the navigation history of the prior page. This means functionality such as swipe gestures will only take the user back to the originally opened URL for that window.
Defining a navigation hierarchy for auto new windows
You may define the navigation hierarchy for your app at build time within your app configuration or alternatively at run time from your website via the JavaScript Bridge.
Whenever a user navigates to a URL that matches a higher level rule, the page will load in a new window (Android Activity or iOS ViewController). Rules are prioritized top to bottom. If no match is found for a link, the link will open in the current level.
Single-page appsAuto new windows will load the new page in a new webview, and requires a full page load. For example, if your site is a single-page app driven by AJAX, then you may need to force a full page load using something like: window.location.href = 'https://my-ajax-site/path';
Auto new windows can be set dynamically from your website using the Median JavaScript Bridge. A default auto new windows setting can be defined in App Studio that is then overwritten dynamically as required. Or alternatively, the configuration can be left blank in App Studio and the auto new windows configuration set by your website.To configure auto new windows settings, define your navigation levels structure as a JSON object and run the following command:
Setting persist: true will save the navigation levels for use the next time the app is launched, otherwise, the changes will only take effect for the current app session.To revert to the appConfig.json definition built into your app, run the following command:
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Median Docs","description":"Median docs: convert websites and web apps into native iOS and Android apps with App Studio, the JavaScript Bridge, and native plugins.","colors":{"primary":"#1174D3","light":"#4299ED","dark":"#1174D3"},"logo":{"light":"https://mintcdn.com/median-co/GbSvThnXlp4SQ94L/images/median/median-docs-light.svg?fit=max\u0026auto=format\u0026n=GbSvThnXlp4SQ94L\u0026q=85\u0026s=1da14bface36d3c440889b1a3b1df5f7","dark":"https://mintcdn.com/median-co/GbSvThnXlp4SQ94L/images/median/median-docs-dark.svg?fit=max\u0026auto=format\u0026n=GbSvThnXlp4SQ94L\u0026q=85\u0026s=90c7e5a9a9435eb9b015af64906bbf61","href":"/docs/overview"},"favicon":{"light":"https://mintcdn.com/median-co/GbSvThnXlp4SQ94L/images/median/favicon-black.png?fit=max\u0026auto=format\u0026n=GbSvThnXlp4SQ94L\u0026q=85\u0026s=c823e2fd7c0e26943949dd47b8e99786","dark":"https://mintcdn.com/median-co/GbSvThnXlp4SQ94L/images/median/favicon-black.png?fit=max\u0026auto=format\u0026n=GbSvThnXlp4SQ94L\u0026q=85\u0026s=c823e2fd7c0e26943949dd47b8e99786"},"background":{"color":{"light":"#FFFFFF","dark":"#0E0D08"}},"navbar":{"links":[{"href":"/docs/support","label":"Support"}],"primary":{"type":"button","label":"Create New App","href":"https://median.co/new"}},"footer":{"socials":{"github":"https://github.com/gonativeio"},"links":[{"header":"Legal","items":[{"label":"Online Terms","href":"https://median.co/terms"},{"label":"Privacy Policy","href":"https://median.co/privacy"}]}]},"search":{"prompt":"Search the Median docs..."},"seo":{"metatags":{"canonical":"https://docs.median.co","og:site_name":"Median Docs","og:type":"website","twitter:card":"summary_large_image"},"indexing":"navigable"},"fonts":{"family":"DM Sans"},"integrations":{"clarity":{"projectId":"xcavaibynk"},"ga4":{"measurementId":"G-JHTZNFF295"}},"banner":{"content":"📚 **Welcome to the new Median docs!** We've moved to a new documentation platform and some page URLs have changed, so please update your bookmarks. Spot a broken link or missing page? [Contact support](https://median.co/contact) or [raise an issue on GitHub](https://github.com/gonativeio/docs/issues).","dismissible":true},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"metadata":{"timestamp":true},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"median-co","hasAudioNarration":false,"actualSubdomain":"median-co","customDomains":["docs.median.co"],"gitSource":{"type":"github","owner":"gonativeio","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"agentFeedback":true,"edits":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"DISABLED"},"CONTEXTUAL_FEEDBACK":{"status":"DISABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"DISABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af6349d58c1bbe7022a6c60","clientVersion":"0.0.4124","searchFilterCounts":[{"language":"default","tag":"Documentation","count":213},{"language":"default","tag":"Native Plugins","count":56},{"language":"default","tag":"Build \u0026 test","count":25},{"language":"default","tag":"Push notifications","count":23},{"language":"default","tag":"Native navigation","count":21},{"language":"default","tag":"Website builders","count":18},{"language":"default","tag":"Interface","count":16},{"language":"default","tag":"Native functionality","count":15},{"language":"default","tag":"Median JavaScript Bridge","count":14},{"language":"default","tag":"Authentication","count":11}],"searchSettings":{"showContentSnippets":false,"isFiltersEnabled":false,"maxResults":5,"fullPageSearch":true}},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":true,"toggles":[],"privacy":{"consentBanner":{"enabled":true}},"googleFontsInlined":true},"customCss":[{"filePath":"changelog-tags.css","content":"[data-component-part=\"update-tag\"][data-tag-kind]{display:inline-flex;align-items:center;padding:0.125rem 0.5rem;border-radius:9999px;font-size:0.75rem;line-height:1.25rem;font-weight:500;color:#1a100b;border:1px solid transparent}[data-component-part=\"update-tag\"][data-tag=\"new-feature\"]{background:#b5daff}[data-component-part=\"update-tag\"][data-tag=\"bug-fix\"]{background:#feb9ff}[data-component-part=\"update-tag\"][data-tag=\"maintenance\"]{background:#ffefb4}[data-component-part=\"update-tag\"][data-tag-kind=\"platform\"]{background:transparent;border-color:#1a100b}.dark [data-component-part=\"update-tag\"][data-tag=\"new-feature\"]{background:#4299ed}.dark [data-component-part=\"update-tag\"][data-tag=\"bug-fix\"]{background:#f567f0}.dark [data-component-part=\"update-tag\"][data-tag=\"maintenance\"]{background:#f7c406}.dark [data-component-part=\"update-tag\"][data-tag-kind=\"platform\"]{color:#f2f0ee;border-color:#f2f0ee}#changelog-filters [data-tag-kind]::before{content:\"\";display:inline-block;width:0.5rem;height:0.5rem;margin-right:0.4rem;border-radius:9999px;vertical-align:middle}#changelog-filters [data-tag=\"new-feature\"]::before{background:#4299ed}#changelog-filters [data-tag=\"bug-fix\"]::before{background:#f567f0}#changelog-filters [data-tag=\"maintenance\"]::before{background:#f7c406}#changelog-filters [data-tag-kind=\"platform\"]::before{background:transparent;box-shadow:inset 0 0 0 1.5px #1a100b}.dark #changelog-filters [data-tag-kind=\"platform\"]::before{box-shadow:inset 0 0 0 1.5px #f2f0ee}html:is([data-current-path=\"/docs/changelog\"],[data-current-path=\"/docs/changelog-archive\"]){--sidebar-width: 0px}html:is([data-current-path=\"/docs/changelog\"],[data-current-path=\"/docs/changelog-archive\"]) [data-layout-item=\"sidebar\"]{display:none}"}],"page":{"pagePath":"docs/auto-new-windows","slug":"/docs/auto-new-windows","pageMetadata":{"title":"Auto new windows","description":"Open pages in new windows with a Back button for multi-level navigation, configured in App Studio or at runtime with the JavaScript Bridge.","keywords":["Auto New Windows","navigation hierarchy","multi-level navigation","windows"],"searchable":true,"href":"/docs/auto-new-windows"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Open pages in new windows with a Back button for multi-level navigation, configured in App Studio or at runtime with the JavaScript Bridge.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const AppetizeEmbed=({iosEmbedCode,androidEmbedCode,device,scale,osVersion})=>{const iosDevice=device?.ios??`iphone17promax`;const androidDevice=device?.android??`pixel9`;const iosScale=scale?.ios??63;const androidScale=scale?.android??60.5;const iosOsVersion=osVersion?.ios??`26`;const androidOsVersion=osVersion?.android??`17.0`;const buildUrl=(code,dev,sc,os)=>`https://appetize.io/embed/${code}?device=${dev}\u0026scale=${sc}\u0026orientation=portrait\u0026osVersion=${os}\u0026deviceColor=black`;const devices=[{label:`iOS`,code:iosEmbedCode,url:buildUrl(iosEmbedCode,iosDevice,iosScale,iosOsVersion)},{label:`Android`,code:androidEmbedCode,url:buildUrl(androidEmbedCode,androidDevice,androidScale,androidOsVersion)}].filter(({code})=>code);if(devices.length===0){return null}return _jsx(`div`,{className:`not-prose mint-flex mint-flex-wrap mint-justify-center mint-gap-6 mint-my-6`,children:devices.map(({label,url})=>_jsxs(`div`,{className:`mint-flex mint-flex-col mint-items-center`,children:[_jsx(`iframe`,{src:url,width:`308`,height:`640`,scrolling:`no`,title:`${label} simulator`,style:{border:0,paddingTop:`10px`,background:`transparent`,colorScheme:`normal`}}),_jsx(`span`,{className:`mint-mt-2 mint-text-sm mint-font-medium mint-text-gray-700 dark:mint-text-gray-300`,children:label})]},label))})};const MedianLogo=()=>{return _jsx(`div`,{className:`not-prose mint-text-gray-900 dark:mint-text-white`,style:{textAlign:`left`},children:_jsxs(`svg`,{width:`224`,height:`32`,viewBox:`0 0 224 32`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,role:`img`,\"aria-label\":`Median JavaScript Bridge`,style:{isolation:`isolate`},children:[_jsx(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M10.1135 0H0V10.4055C0 12.685 1.84789 14.5329 4.12739 14.5329H7.12043V18.3325C7.12043 20.612 8.96833 22.4599 11.2478 22.4599H14.8882V25.599C14.8882 27.8785 16.7361 29.7264 19.0156 29.7264H29.129V19.3209C29.129 17.0414 27.2812 15.1935 25.0017 15.1935H21.3613V12.0544C21.3613 9.77493 19.5134 7.92703 17.2339 7.92703H14.2409V4.12739C14.2409 1.84789 12.393 0 10.1135 0Z`,fill:`white`}),_jsx(`g`,{style:{mixBlendMode:`multiply`},children:_jsx(`path`,{d:`M14.8882 19.3207C14.8882 17.0413 16.7361 15.1934 19.0156 15.1934H25.0017C27.2812 15.1934 29.1291 17.0413 29.1291 19.3207V29.7263H19.0156C16.7361 29.7263 14.8882 27.8784 14.8882 25.5989V19.3207Z`,fill:`#F7C406`})}),_jsx(`g`,{style:{mixBlendMode:`multiply`},children:_jsx(`rect`,{x:`7.12061`,y:`7.92725`,width:`14.2409`,height:`14.5329`,rx:`4.12739`,fill:`#F567F0`})}),_jsx(`g`,{style:{mixBlendMode:`multiply`},children:_jsx(`path`,{d:`M0 0H10.1135C12.393 0 14.2409 1.84789 14.2409 4.12739V10.4055C14.2409 12.685 12.393 14.5329 10.1135 14.5329H4.12739C1.84789 14.5329 0 12.685 0 10.4055V0Z`,fill:`#4299ED`})}),_jsx(`path`,{d:`M54.9869 22.3729L47.7122 7.40723H44.1079V30.1189H47.5199V14.0866L53.5926 26.4446H56.6005L62.3337 14.1848V30.1189H65.7441V7.40723H62.1384L54.9869 22.3729Z`,fill:`currentColor`}),_jsx(`path`,{d:`M81.856 13.678C80.6045 12.8631 79.0916 12.4502 77.3488 12.4502C75.6375 12.4502 74.1246 12.8631 72.8596 13.678C71.5983 14.4556 70.5784 15.5821 69.9178 16.9271C69.2297 18.3202 68.8808 19.8623 68.9007 21.4225C68.8856 22.9888 69.2467 24.5349 69.9524 25.9256C70.6606 27.2738 71.7083 28.4045 72.9873 29.2008C74.2778 29.9881 75.7983 30.3872 77.5065 30.3872C79.5092 30.3872 81.1739 29.8899 82.454 28.9076C83.731 27.9301 84.7109 26.6029 85.28 25.0799L85.5459 24.3785H81.8815L81.7313 24.6486C81.345 25.3789 80.7881 26.0005 80.1102 26.4581C79.4266 26.9032 78.5597 27.1288 77.5306 27.1288C76.638 27.1508 75.7547 26.9395 74.9644 26.5149C74.2472 26.0967 73.6391 25.5081 73.1916 24.799C72.854 24.2174 72.6086 23.585 72.4644 22.9251H85.7863V21.4271C85.8073 19.8679 85.4589 18.3267 84.7707 16.9348C84.1193 15.5901 83.1088 14.461 81.856 13.678ZM72.541 19.59C72.7895 18.5996 73.2927 17.6951 73.9984 16.9701C74.8473 16.1214 75.9515 15.7085 77.3608 15.7085C78.7701 15.7085 79.8743 16.1214 80.7247 16.9701C81.4465 17.684 81.955 18.5925 82.1911 19.59H72.541Z`,fill:`currentColor`}),_jsx(`path`,{d:`M101.475 14.4765C101 14.0104 100.464 13.6142 99.8822 13.2993C98.8726 12.7361 97.6496 12.4506 96.2463 12.4506C94.5937 12.4506 93.1258 12.8634 91.8758 13.6784C90.6466 14.4712 89.654 15.5935 89.0062 16.9229C88.3181 18.316 87.9692 19.8581 87.9891 21.4183C87.9742 22.9763 88.3223 24.5156 89.0047 25.9091C89.6574 27.2449 90.6482 28.3779 91.8743 29.1904C93.1243 29.9808 94.5937 30.3814 96.2403 30.3814C97.6421 30.3814 98.8665 30.0959 99.8732 29.5357C100.455 29.2232 100.994 28.833 101.475 28.3755V30.1266H104.885V6.1626H101.475V14.4765ZM101.009 18.5222C101.414 19.4304 101.62 20.4186 101.61 21.4168C101.615 22.414 101.41 23.4008 101.009 24.3098C100.635 25.1443 100.041 25.8551 99.2917 26.3618C98.5691 26.8683 97.6526 27.1292 96.5664 27.1292C95.4801 27.1292 94.5652 26.8714 93.7989 26.3618C93.0337 25.8559 92.4197 25.1443 92.0246 24.3052C91.6073 23.4024 91.3942 22.4152 91.4011 21.4168C91.3891 20.4185 91.6019 19.4307 92.0231 18.5298C92.4191 17.6917 93.0335 16.9811 93.7989 16.4763C94.5652 15.9668 95.4966 15.7089 96.5664 15.7089C97.6361 15.7089 98.5691 15.9652 99.2962 16.4763C100.043 16.982 100.636 17.6906 101.009 18.5222Z`,fill:`currentColor`}),_jsx(`path`,{d:`M111.695 12.7129H108.283V30.1204H111.695V12.7129Z`,fill:`currentColor`}),_jsx(`path`,{d:`M127.594 14.4761C127.118 14.0109 126.583 13.6147 126.001 13.2989C124.992 12.7357 123.767 12.4502 122.364 12.4502C120.711 12.4502 119.245 12.8631 117.995 13.678C116.766 14.4712 115.774 15.5934 115.125 16.9225C114.437 18.3155 114.088 19.8577 114.108 21.4179C114.093 22.9759 114.441 24.5152 115.124 25.9087C115.778 27.2455 116.771 28.379 117.999 29.1916C119.249 29.982 120.717 30.3826 122.356 30.3826C123.76 30.3826 124.984 30.0971 125.989 29.5369C126.57 29.2219 127.107 28.8291 127.586 28.3689V30.1201H130.997V12.7203H127.586L127.594 14.4761ZM127.128 18.5218C127.531 19.4307 127.733 20.4188 127.722 21.4164C127.729 22.4131 127.527 23.3998 127.128 24.3094C126.755 25.1439 126.16 25.8547 125.411 26.3614C124.688 26.8679 123.772 27.1288 122.684 27.1288C121.596 27.1288 120.684 26.871 119.917 26.3614C119.153 25.857 118.539 25.1476 118.144 24.311C117.726 23.4083 117.513 22.421 117.52 21.4225C117.509 20.4244 117.721 19.4369 118.141 18.5356C118.537 17.6978 119.152 16.9874 119.917 16.4821C120.684 15.9725 121.614 15.7147 122.684 15.7147C123.754 15.7147 124.688 15.971 125.415 16.4821C126.16 16.9866 126.753 17.6928 127.128 18.5218Z`,fill:`currentColor`}),_jsx(`path`,{d:`M148.541 15.9204C147.95 14.8222 147.06 13.9236 145.977 13.3343C144.953 12.75 143.799 12.4455 142.626 12.4503C141.23 12.4503 140.061 12.7572 139.149 13.3512C138.671 13.6648 138.223 14.0245 137.812 14.4255V12.7204H134.401V30.1186H137.812V20.1717C137.794 19.359 137.991 18.5563 138.381 17.8481C138.759 17.1885 139.301 16.6426 139.951 16.2657C140.621 15.8898 141.375 15.6979 142.139 15.7086C143.327 15.7086 144.265 16.1046 145.008 16.9241C145.752 17.7437 146.119 18.7781 146.119 20.138V30.114H149.529V20.0735C149.535 18.4344 149.199 17.0331 148.541 15.9204Z`,fill:`currentColor`}),_jsx(`path`,{d:`M109.989 5.97803C109.444 5.97843 108.922 6.19956 108.537 6.59289C108.151 6.98621 107.934 7.51962 107.934 8.07607V8.11597C107.948 8.66279 108.171 9.18224 108.555 9.56377C108.938 9.9453 109.453 10.1588 109.988 10.1588C110.524 10.1588 111.038 9.9453 111.422 9.56377C111.805 9.18224 112.028 8.66279 112.043 8.11597V8.07146C112.041 7.51608 111.824 6.98408 111.439 6.59179C111.054 6.1995 110.533 5.97884 109.989 5.97803Z`,fill:`currentColor`}),_jsx(`path`,{d:`M159.807 19.7098C159.127 19.7098 158.58 19.5198 158.167 19.1398C157.76 18.7532 157.557 18.2065 157.557 17.4998H158.837C158.844 17.8265 158.92 18.0865 159.067 18.2798C159.214 18.4732 159.45 18.5698 159.777 18.5698C160.084 18.5698 160.307 18.4798 160.447 18.2998C160.587 18.1132 160.657 17.8698 160.657 17.5698V12.5898H161.937V17.5698C161.937 18.2565 161.744 18.7865 161.357 19.1598C160.977 19.5265 160.46 19.7098 159.807 19.7098ZM163.046 19.5898L165.606 12.5898H167.046L169.606 19.5898H168.246L167.686 17.9698H164.956L164.386 19.5898H163.046ZM165.306 16.9698H167.336L166.316 14.0598L165.306 16.9698ZM172.149 19.5898L169.589 12.5898H170.959L172.939 18.2798L174.929 12.5898H176.279L173.719 19.5898H172.149ZM176.273 19.5898L178.833 12.5898H180.273L182.833 19.5898H181.473L180.913 17.9698H178.183L177.613 19.5898H176.273ZM178.533 16.9698H180.563L179.543 14.0598L178.533 16.9698ZM186.625 19.7098C186.111 19.7098 185.658 19.6232 185.265 19.4498C184.871 19.2698 184.561 19.0165 184.335 18.6898C184.108 18.3565 183.991 17.9532 183.985 17.4798H185.335C185.348 17.8065 185.465 18.0832 185.685 18.3098C185.911 18.5298 186.221 18.6398 186.615 18.6398C186.955 18.6398 187.225 18.5598 187.425 18.3998C187.625 18.2332 187.725 18.0132 187.725 17.7398C187.725 17.4532 187.635 17.2298 187.455 17.0698C187.281 16.9098 187.048 16.7798 186.755 16.6798C186.461 16.5798 186.148 16.4732 185.815 16.3598C185.275 16.1732 184.861 15.9332 184.575 15.6398C184.295 15.3465 184.155 14.9565 184.155 14.4698C184.148 14.0565 184.245 13.7032 184.445 13.4098C184.651 13.1098 184.931 12.8798 185.285 12.7198C185.638 12.5532 186.045 12.4698 186.505 12.4698C186.971 12.4698 187.381 12.5532 187.735 12.7198C188.095 12.8865 188.375 13.1198 188.575 13.4198C188.781 13.7198 188.891 14.0765 188.905 14.4898H187.535C187.528 14.2432 187.431 14.0265 187.245 13.8398C187.065 13.6465 186.811 13.5498 186.485 13.5498C186.205 13.5432 185.968 13.6132 185.775 13.7598C185.588 13.8998 185.495 14.1065 185.495 14.3798C185.495 14.6132 185.568 14.7998 185.715 14.9398C185.861 15.0732 186.061 15.1865 186.315 15.2798C186.568 15.3732 186.858 15.4732 187.185 15.5798C187.531 15.6998 187.848 15.8398 188.135 15.9998C188.421 16.1598 188.651 16.3732 188.825 16.6398C188.998 16.8998 189.085 17.2365 189.085 17.6498C189.085 18.0165 188.991 18.3565 188.805 18.6698C188.618 18.9832 188.341 19.2365 187.975 19.4298C187.608 19.6165 187.158 19.7098 186.625 19.7098ZM193.871 19.7098C193.165 19.7098 192.558 19.5598 192.051 19.2598C191.545 18.9532 191.155 18.5298 190.881 17.9898C190.608 17.4432 190.471 16.8132 190.471 16.0998C190.471 15.3865 190.608 14.7565 190.881 14.2098C191.155 13.6632 191.545 13.2365 192.051 12.9298C192.558 12.6232 193.165 12.4698 193.871 12.4698C194.711 12.4698 195.398 12.6798 195.931 13.0998C196.471 13.5132 196.808 14.0965 196.941 14.8498H195.531C195.445 14.4698 195.258 14.1732 194.971 13.9598C194.691 13.7398 194.318 13.6298 193.851 13.6298C193.205 13.6298 192.698 13.8498 192.331 14.2898C191.965 14.7298 191.781 15.3332 191.781 16.0998C191.781 16.8665 191.965 17.4698 192.331 17.9098C192.698 18.3432 193.205 18.5598 193.851 18.5598C194.318 18.5598 194.691 18.4598 194.971 18.2598C195.258 18.0532 195.445 17.7698 195.531 17.4098H196.941C196.808 18.1298 196.471 18.6932 195.931 19.0998C195.398 19.5065 194.711 19.7098 193.871 19.7098ZM198.575 19.5898V12.5898H201.145C201.705 12.5898 202.165 12.6865 202.525 12.8798C202.891 13.0665 203.165 13.3232 203.345 13.6498C203.525 13.9698 203.615 14.3265 203.615 14.7198C203.615 15.1465 203.501 15.5365 203.275 15.8898C203.055 16.2432 202.708 16.4998 202.235 16.6598L203.685 19.5898H202.215L200.915 16.8298H199.855V19.5898H198.575ZM199.855 15.8898H201.065C201.491 15.8898 201.805 15.7865 202.005 15.5798C202.205 15.3732 202.305 15.0998 202.305 14.7598C202.305 14.4265 202.205 14.1598 202.005 13.9598C201.811 13.7598 201.495 13.6598 201.055 13.6598H199.855V15.8898ZM205.305 19.5898V12.5898H206.585V19.5898H205.305ZM208.442 19.5898V12.5898H211.032C211.592 12.5898 212.055 12.6832 212.422 12.8698C212.788 13.0565 213.062 13.3132 213.242 13.6398C213.422 13.9665 213.512 14.3332 213.512 14.7398C213.512 15.1265 213.425 15.4832 213.252 15.8098C213.078 16.1298 212.808 16.3898 212.442 16.5898C212.075 16.7832 211.605 16.8798 211.032 16.8798H209.722V19.5898H208.442ZM209.722 15.8398H210.952C211.398 15.8398 211.718 15.7432 211.912 15.5498C212.112 15.3498 212.212 15.0798 212.212 14.7398C212.212 14.3932 212.112 14.1232 211.912 13.9298C211.718 13.7298 211.398 13.6298 210.952 13.6298H209.722V15.8398ZM216.646 19.5898V13.6198H214.606V12.5898H219.976V13.6198H217.926V19.5898H216.646ZM157.977 29.5898V22.5898H160.787C161.514 22.5898 162.067 22.7598 162.447 23.0998C162.834 23.4332 163.027 23.8632 163.027 24.3898C163.027 24.8298 162.907 25.1832 162.667 25.4498C162.434 25.7098 162.147 25.8865 161.807 25.9798C162.207 26.0598 162.537 26.2598 162.797 26.5798C163.057 26.8932 163.187 27.2598 163.187 27.6798C163.187 28.2332 162.987 28.6898 162.587 29.0498C162.187 29.4098 161.62 29.5898 160.887 29.5898H157.977ZM159.257 25.5298H160.597C160.957 25.5298 161.234 25.4465 161.427 25.2798C161.62 25.1132 161.717 24.8765 161.717 24.5698C161.717 24.2765 161.62 24.0465 161.427 23.8798C161.24 23.7065 160.957 23.6198 160.577 23.6198H159.257V25.5298ZM159.257 28.5498H160.687C161.067 28.5498 161.36 28.4632 161.567 28.2898C161.78 28.1098 161.887 27.8598 161.887 27.5398C161.887 27.2132 161.777 26.9565 161.557 26.7698C161.337 26.5832 161.04 26.4898 160.667 26.4898H159.257V28.5498ZM164.785 29.5898V22.5898H167.355C167.915 22.5898 168.375 22.6865 168.735 22.8798C169.102 23.0665 169.375 23.3232 169.555 23.6498C169.735 23.9698 169.825 24.3265 169.825 24.7198C169.825 25.1465 169.712 25.5365 169.485 25.8898C169.265 26.2432 168.919 26.4998 168.445 26.6598L169.895 29.5898H168.425L167.125 26.8298H166.065V29.5898H164.785ZM166.065 25.8898H167.275C167.702 25.8898 168.015 25.7865 168.215 25.5798C168.415 25.3732 168.515 25.0998 168.515 24.7598C168.515 24.4265 168.415 24.1598 168.215 23.9598C168.022 23.7598 167.705 23.6598 167.265 23.6598H166.065V25.8898ZM171.516 29.5898V22.5898H172.796V29.5898H171.516ZM174.653 29.5898V22.5898H177.043C177.863 22.5898 178.536 22.7365 179.063 23.0298C179.596 23.3165 179.989 23.7232 180.243 24.2498C180.503 24.7698 180.633 25.3832 180.633 26.0898C180.633 26.7965 180.503 27.4132 180.243 27.9398C179.989 28.4598 179.596 28.8665 179.063 29.1598C178.536 29.4465 177.863 29.5898 177.043 29.5898H174.653ZM175.933 28.4898H176.983C177.569 28.4898 178.033 28.3965 178.373 28.2098C178.713 28.0165 178.956 27.7432 179.103 27.3898C179.249 27.0298 179.323 26.5965 179.323 26.0898C179.323 25.5898 179.249 25.1598 179.103 24.7998C178.956 24.4398 178.713 24.1632 178.373 23.9698C178.033 23.7765 177.569 23.6798 176.983 23.6798H175.933V28.4898ZM185.322 29.7098C184.662 29.7098 184.085 29.5598 183.592 29.2598C183.099 28.9598 182.715 28.5432 182.442 28.0098C182.169 27.4698 182.032 26.8432 182.032 26.1298C182.032 25.4098 182.172 24.7765 182.452 24.2298C182.739 23.6765 183.142 23.2465 183.662 22.9398C184.189 22.6265 184.812 22.4698 185.532 22.4698C186.352 22.4698 187.032 22.6665 187.572 23.0598C188.112 23.4532 188.462 23.9965 188.622 24.6898H187.192C187.085 24.3632 186.892 24.1098 186.612 23.9298C186.332 23.7432 185.972 23.6498 185.532 23.6498C184.832 23.6498 184.292 23.8732 183.912 24.3198C183.532 24.7598 183.342 25.3665 183.342 26.1398C183.342 26.9132 183.529 27.5132 183.902 27.9398C184.282 28.3598 184.795 28.5698 185.442 28.5698C186.075 28.5698 186.552 28.3998 186.872 28.0598C187.199 27.7132 187.395 27.2598 187.462 26.6998H185.692V25.7398H188.752V29.5898H187.572L187.472 28.6698C187.245 29.0032 186.962 29.2598 186.622 29.4398C186.282 29.6198 185.849 29.7098 185.322 29.7098ZM190.496 29.5898V22.5898H195.066V23.6198H191.776V25.5398H194.766V26.5398H191.776V28.5598H195.066V29.5898H190.496Z`,fill:`currentColor`})]})})};function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Frame,Heading,OptimizedImage,Warning,_MdxComponentBoundary}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Warning)_missingMdxReference(`Warning`,true);if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Many widely used apps ranging from news apps to banking apps provide a hierarchical or multi-level navigation experience for users. This allows users to view specific page(s) and easily return to the same place on the prior page by way of a ”\u003c Back” button in the top navigation bar.`}),`\n`,_jsx(_components.p,{children:`For example, a news app may have various categories such as “Local News”, “International”, “Business”, “Sports”, “Lifestyle” defined as level 2. When a user clicks a category, they will see news articles in that category which they can open and browse. At any time they can press ”\u003c Back” in the top nav bar to return to the front page.`}),`\n`,_jsxs(_components.p,{children:[`Median allows you to configure this user experience easily by assigning individual pages or groups of pages to a Level by creating rules. When clicking a link to a page that has been assigned a higher level, the link will open in a new window within the app. The top navigation bar will show a ”\u003c Back” button on the left to allow easy navigation to the lower level page even if the user has navigated elsewhere in that current level. The top navigation bar will show the page name in the center but this can be changed using the `,_jsx(_components.a,{href:`/docs/dynamic-titles`,children:`Dynamic Titles`}),` configuration.`]}),`\n`,_jsx(_components.p,{children:`See below for an example.`}),`\n`,_jsx(Frame,{caption:`Auto new windows example`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/median-co/7LCOHMhgIef7ewYE/images/docs/83ec6e7f125aa0114a3a7d8352a7e16d84a69303bfb65c5dda3a530671680d25-autonewwindows.gif?s=b155bf58d00b92272fdd4a067960a94e`,alt:`Tapping a link opens the page in a new window with a Back button in the top navigation bar`,\"data-og-width\":`354`,width:`354`,\"data-og-height\":`681`,height:`681`,\"data-path\":`images/docs/83ec6e7f125aa0114a3a7d8352a7e16d84a69303bfb65c5dda3a530671680d25-autonewwindows.gif`,\"data-optimize\":`true`,\"data-opv\":`3`})}),`\n`,_jsxs(Warning,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Navigation history`})}),_jsx(_components.p,{children:`When a page that is assigned a higher level opens in a new window within your app, it will not have the navigation history of the prior page. This means functionality such as swipe gestures will only take the user back to the originally opened URL for that window.`})]}),`\n`,_jsx(Heading,{level:`2`,id:`defining-a-navigation-hierarchy-for-auto-new-windows`,children:`Defining a navigation hierarchy for auto new windows`}),`\n`,_jsx(_components.p,{children:`You may define the navigation hierarchy for your app at build time within your app configuration or alternatively at run time from your website via the JavaScript Bridge.`}),`\n`,_jsx(Heading,{level:`3`,id:`app-configuration`,children:`App configuration`}),`\n`,_jsx(_components.p,{children:`Whenever a user navigates to a URL that matches a higher level rule, the page will load in a new window (Android Activity or iOS ViewController). Rules are prioritized top to bottom. If no match is found for a link, the link will open in the current level.`}),`\n`,_jsxs(Warning,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Single-page apps`})}),_jsxs(_components.p,{children:[`Auto new windows will load the new page in a new webview, and requires a full page load. For example, if your site is a single-page app driven by AJAX, then you may need to force a full page load using something like: `,_jsx(_components.code,{children:`window.location.href = 'https://my-ajax-site/path';`})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`javascript-bridge`,children:`JavaScript Bridge`}),`\n`,_jsx(_components.p,{children:`Auto new windows can be set dynamically from your website using the Median JavaScript Bridge. A default auto new windows setting can be defined in App Studio that is then overwritten dynamically as required. Or alternatively, the configuration can be left blank in App Studio and the auto new windows configuration set by your website.`}),`\n`,_jsx(_components.p,{children:`To configure auto new windows settings, define your navigation levels structure as a JSON object and run the following command:`}),`\n`,_jsx(_MdxComponentBoundary,{name:`MedianLogo`,children:_jsx(MedianLogo,{})}),`\n`,_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`13`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`var`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` autoNewWindowsRules`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` active:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` persist:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` levels:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` regex:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '.*median.*'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` level:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 2`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }, {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` regex:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '.*'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` level:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`};`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`median`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`navigationLevels`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`autoNewWindowsRules`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})})}),`\n`,_jsxs(_components.p,{children:[`Setting `,_jsx(_components.code,{children:`persist: true`}),` will save the navigation levels for use the next time the app is launched, otherwise, the changes will only take effect for the current app session.`]}),`\n`,_jsx(_components.p,{children:`To revert to the appConfig.json definition built into your app, run the following command:`}),`\n`,_jsx(_MdxComponentBoundary,{name:`MedianLogo`,children:_jsx(MedianLogo,{})}),`\n`,_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`1`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`median`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`navigationLevels`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`persist:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})]}),`\n`]})})})}),`\n`,_jsx(Heading,{level:`2`,id:`auto-new-windows-demo-app`,children:`Auto new windows demo app`}),`\n`,_jsx(_MdxComponentBoundary,{name:`AppetizeEmbed`,children:_jsx(AppetizeEmbed,{iosEmbedCode:`5j46uecen3c7uxzvrz7gmds2xu`,androidEmbedCode:`zvtbs3zw6iij3c7miqit5mlmlu`})}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Auto new windows configuration`,numberOfLines:`15`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`15`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`/* Auto new windows configuration */`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"regex\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://median.dev/auto-new-windows/index.html/?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"level\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"regex\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://median.dev/auto-new-windows/contact.html/?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"level\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"regex\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://median.dev/auto-new-windows/about.html/?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"level\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Set auto new windows`,numberOfLines:`15`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`15`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`/* Set auto new windows */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`median`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`navigationLevels`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` active:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` levels:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` regex:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://median.dev/auto-new-windows/index.html/?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` level:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }, {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` regex:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://median.dev/auto-new-windows/contact.html/?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` level:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }, {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` regex:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://median.dev/auto-new-windows/about.html/?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` level:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 2`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` persist:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Revert auto new windows`,numberOfLines:`4`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`/* Revert auto new windows */`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`navigator`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`userAgent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`indexOf`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'median'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` -`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` median`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`navigationLevels`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`persist:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{AppetizeEmbed,MedianLogo,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Auto new windows","description":"Open pages in new windows with a Back button for multi-level navigation, configured in App Studio or at runtime with the JavaScript Bridge.","keywords":["Auto New Windows","navigation hierarchy","multi-level navigation","windows"],"searchable":true,"href":"/docs/auto-new-windows"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[149,15428,")=>null;const MedianLogo=()=>null;functi"]]},"mdxExtracts":{"tableOfContents":[{"title":"Defining a navigation hierarchy for auto new windows","slug":"defining-a-navigation-hierarchy-for-auto-new-windows","depth":2,"children":[{"title":"App configuration","slug":"app-configuration","depth":3,"children":[]},{"title":"JavaScript Bridge","slug":"javascript-bridge","depth":3,"children":[]}]},{"title":"Auto new windows demo app","slug":"auto-new-windows-demo-app","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/median-co/7d11e00da3e50cd7/changelog-tags.js"],"dynamicCss":".mint-my-6 {\n margin-top: 1.5rem;\n margin-bottom: 1.5rem\n}\n.mint-mt-2 {\n margin-top: 0.5rem\n}\n.mint-flex {\n display: flex\n}\n.mint-flex-col {\n flex-direction: column\n}\n.mint-flex-wrap {\n flex-wrap: wrap\n}\n.mint-items-center {\n align-items: center\n}\n.mint-justify-center {\n justify-content: center\n}\n.mint-gap-6 {\n gap: 1.5rem\n}\n.mint-text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem\n}\n.mint-font-medium {\n font-weight: 500\n}\n.mint-text-gray-700 {\n --tw-text-opacity: 1;\n color: rgb(55 65 81 / var(--tw-text-opacity, 1))\n}\n.mint-text-gray-900 {\n --tw-text-opacity: 1;\n color: rgb(17 24 39 / var(--tw-text-opacity, 1))\n}\n.dark\\:mint-text-gray-300:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgb(209 213 219 / var(--tw-text-opacity, 1))\n}\n.dark\\:mint-text-white:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity, 1))\n}","subdomain":"median-co","siteName":"Median Docs","title":"Auto new windows - Median Docs","relatedPagesConfig":{"enabled":true,"limit":3,"mode":"automatic"},"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-07T14:23:18.281Z","gitLastModified":"2026-11-07T14:22:54.000Z","originalFileLocation":"docs/auto-new-windows.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Open pages in new windows with a Back button for multi-level navigation, configured in App Studio or at runtime with the JavaScript Bridge.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Median Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/median-co/pVMifrDrx5tO42Lz/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/median-co/pVMifrDrx5tO42Lz/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/median-co/pVMifrDrx5tO42Lz/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/median-co/pVMifrDrx5tO42Lz/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/median-co/pVMifrDrx5tO42Lz/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/median-co/pVMifrDrx5tO42Lz/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/median-co/pVMifrDrx5tO42Lz/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/median-co/pVMifrDrx5tO42Lz/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/median-co/pVMifrDrx5tO42Lz/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Auto new windows - Median Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Open pages in new windows with a Back button for multi-level navigation, configured in App Studio or at runtime with the JavaScript Bridge.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Median Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.median.co/docs/auto-new-windows\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://median-co.mintlify.site/_mintlify/api/og/v2?division=Top+navigation+bar\u0026amp;title=Auto+new+windows\u0026amp;description=Open+pages+in+new+windows+with+a+Back+button+for+multi-level+navigation%2C+configured+in+App+Studio+or+at+runtime+with+the+JavaScript+Bridge.\u0026amp;theme=89e8bfd49237022defc8e4a0\u0026amp;signature=b6bc04818da57a0058e3948e409f1d7537367a890e07bdcd1f82d55a3cfcbbb2\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Auto new windows - Median Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Open pages in new windows with a Back button for multi-level navigation, configured in App Studio or at runtime with the JavaScript Bridge.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://median-co.mintlify.site/_mintlify/api/og/v2?division=Top+navigation+bar\u0026amp;title=Auto+new+windows\u0026amp;description=Open+pages+in+new+windows+with+a+Back+button+for+multi-level+navigation%2C+configured+in+App+Studio+or+at+runtime+with+the+JavaScript+Bridge.\u0026amp;theme=89e8bfd49237022defc8e4a0\u0026amp;signature=b6bc04818da57a0058e3948e409f1d7537367a890e07bdcd1f82d55a3cfcbbb2\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/median-co/pVMifrDrx5tO42Lz/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Median Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1174D3\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.median.co/docs/auto-new-windows\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/auto-new-windows.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.median.co/#organization\",\"name\":\"Median Docs\",\"url\":\"https://docs.median.co\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/median-co/GbSvThnXlp4SQ94L/images/median/median-docs-light.svg?fit=max\u0026auto=format\u0026n=GbSvThnXlp4SQ94L\u0026q=85\u0026s=1da14bface36d3c440889b1a3b1df5f7\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.median.co#website\",\"name\":\"Median Docs\",\"url\":\"https://docs.median.co\",\"publisher\":{\"@id\":\"https://docs.median.co/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.median.co/docs/auto-new-windows#webpage\",\"url\":\"https://docs.median.co/docs/auto-new-windows\",\"name\":\"Auto new windows\",\"description\":\"Open pages in new windows with a Back button for multi-level navigation, configured in App Studio or at runtime with the JavaScript Bridge.\",\"dateModified\":\"2026-11-07T14:22:54.000Z\",\"isPartOf\":{\"@id\":\"https://docs.median.co#website\"},\"breadcrumb\":{\"@id\":\"https://docs.median.co/docs/auto-new-windows#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.median.co/docs/auto-new-windows#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Native navigation\",\"item\":\"https://docs.median.co/docs/native-navigation-overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Top navigation bar\",\"item\":\"https://docs.median.co/docs/top-navigation-bar\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Auto new windows\",\"item\":\"https://docs.median.co/docs/auto-new-windows\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.median.co/docs/auto-new-windows#article\",\"headline\":\"Auto new windows\",\"name\":\"Auto new windows\",\"description\":\"Open pages in new windows with a Back button for multi-level navigation, configured in App Studio or at runtime with the JavaScript Bridge.\",\"url\":\"https://docs.median.co/docs/auto-new-windows\",\"mainEntityOfPage\":{\"@id\":\"https://docs.median.co/docs/auto-new-windows#webpage\"},\"dateModified\":\"2026-11-07T14:22:54.000Z\",\"keywords\":\"Auto New Windows, navigation hierarchy, multi-level navigation, windows\",\"publisher\":{\"@id\":\"https://docs.median.co/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.median.co#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Median Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Median Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/auto-new-windows.md","siteName":"Median Docs","nav":{"global":null,"tabs":[{"tab":"Documentation","icon":"book-open","groups":[{"group":"Welcome","pages":[{"title":"Welcome to Median","href":"/docs/overview"},{"title":"App architecture","href":"/docs/architecture"},{"group":"Security \u0026 privacy","root":{"title":"Security \u0026 privacy","href":"/docs/security"},"pages":[{"title":"Reporting app abuse and content violations","href":"/docs/report"}]},{"title":"App licenses","href":"/docs/licenses"},{"title":"App updates and migration guide","href":"/docs/app-updates"},{"title":"App Studio accounts","href":"/docs/app-studio-accounts"},{"title":"Support","href":"/docs/support"},{"title":"Median MCP server","href":"/docs/mcp-server"}]},{"group":"Getting started","pages":[{"title":"Quickstart guide","href":"/docs/quickstart"},{"title":"App Studio Simulators","sidebarTitle":"Simulators","href":"/docs/simulators"},{"title":"App Store publishing","href":"/docs/app-publishing"}]},{"group":"Branding","pages":[{"title":"Branding overview","href":"/docs/branding-overview"},{"title":"App icon","href":"/docs/app-icon"},{"title":"Splash screen","href":"/docs/splash-screen"},{"title":"Theme colors","href":"/docs/theme-colors"},{"title":"Status bar","href":"/docs/status-bar"},{"title":"System navigation bar (Android)","href":"/docs/system-nav-bar"}]},{"group":"Interface","pages":[{"title":"App interface overview","href":"/docs/app-interface-overview"},{"group":"Device screen control","root":{"title":"Device screen control","href":"/docs/device-screen-control"},"pages":[{"title":"Screen brightness","href":"/docs/screen-brightness"},{"title":"Keep screen on","href":"/docs/keep-screen-on"},{"title":"Full screen","href":"/docs/full-screen"},{"title":"Screen orientation","href":"/docs/screen-orientation"}]},{"title":"Dark mode","href":"/docs/dark-mode"},{"title":"Native gestures and interactions","href":"/docs/swipe-gestures"},{"title":"Font scaling","href":"/docs/font-scaling"},{"title":"Webview zoom","href":"/docs/webview-zoom"},{"title":"New windows","href":"/docs/new-windows"},{"title":"Maximum windows","href":"/docs/maximum-windows"},{"group":"Offline page","root":{"title":"Offline page","href":"/docs/offline-page"},"pages":[{"title":"Service workers","href":"/docs/service-workers"},{"title":"Native datastore offline","href":"/docs/native-datastore-offline"}]},{"title":"iOS Split View support","href":"/docs/ios-split-view"},{"title":"Localization","href":"/docs/localization"},{"title":"Liquid Glass (iOS)","href":"/docs/ios-liquid-glass"}]},{"group":"Link handling","pages":[{"title":"Link handling overview","href":"/docs/link-handling-overview"},{"title":"Link behavior","href":"/docs/internal-vs-external-links"},{"group":"Deep linking","root":{"title":"Deep linking overview","href":"/docs/deep-linking"},"pages":[{"title":"Deep Linking Validator","href":"/docs/deep-linking-validator"},{"title":"Custom URL schemes","href":"/docs/url-scheme-protocol"}]}]},{"group":"Permissions","pages":[{"group":"Permissions overview","root":{"title":"Permissions overview","href":"/docs/permissions-overview"},"pages":[{"title":"Permission prompt localization","href":"/docs/permission-prompt-localization"}]},{"title":"Apple App Tracking Transparency","href":"/docs/apple-att"},{"title":"Camera and file uploads","href":"/docs/camera-and-file-uploads"},{"title":"Downloads directory","href":"/docs/downloads-directory"},{"title":"Location services","href":"/docs/location-services"},{"title":"WebRTC audio \u0026 video","href":"/docs/web-rtc"}]},{"group":"Web Overrides","pages":[{"title":"Website overrides overview","href":"/docs/website-overrides-overview"},{"title":"Custom user agent","href":"/docs/custom-user-agent"},{"title":"Custom headers","href":"/docs/custom-headers"},{"title":"Custom CSS","href":"/docs/custom-css"},{"title":"Custom JavaScript","href":"/docs/custom-js"},{"title":"Cookie persistence","href":"/docs/cookie-persistence"}]},{"group":"Native navigation","pages":[{"title":"Native navigation overview","href":"/docs/native-navigation-overview"},{"title":"Native navigation instances","href":"/docs/navigation-instances"},{"title":"What changed in native navigation","href":"/docs/native-navigation-changes"},{"title":"Native page transitions","href":"/docs/native-page-transitions"},{"group":"Top navigation bar","root":{"title":"Top navigation bar","href":"/docs/top-navigation-bar"},"pages":[{"title":"Dynamic titles","description":"Set the text or image in your app's top navigation bar per URL, at build time in App Studio or at runtime with the JavaScript Bridge.","href":"/docs/dynamic-titles"},{"title":"Auto new windows","href":"/docs/auto-new-windows"},{"title":"Search form","description":"Add a native search button and search form to the top navigation bar that sends search terms to your website's search URL.","href":"/docs/search-bar-form"},{"title":"Refresh button","href":"/docs/refresh-button"},{"title":"Share button","href":"/docs/share-button"},{"title":"Custom buttons","href":"/docs/add-custom-buttons"},{"title":"Top navigation bar demo app","href":"/docs/top-nav-bar-demo-app"}]},{"group":"Sidebar navigation","root":{"title":"Sidebar navigation","href":"/docs/sidebar-navigation-menu"},"pages":[{"title":"Sidebar Visual Editor","href":"/docs/sidebar-configuration"},{"title":"Dynamic menu items","href":"/docs/dynamic-menu-items"},{"title":"Sidebar demo app","href":"/docs/sidebar-demo-app"}]},{"group":"Bottom tab bar","root":{"title":"Bottom tab bar","href":"/docs/bottom-tab-bar"},"pages":[{"title":"Selecting tabs","href":"/docs/selecting-tabs"},{"title":"Bottom tab bar Visual Editor","href":"/docs/tab-configuration"},{"title":"Dynamic tab menu","href":"/docs/dynamic-tab-menu"},{"title":"Localized tab menu","href":"/docs/localized-tab-menu"},{"title":"Bottom tab demo app","href":"/docs/bottom-tab-demo-app"}]},{"title":"Custom icons","href":"/docs/custom-icons"},{"title":"iOS contextual navigation toolbar","href":"/docs/contextual-navigation-toolbar"}]},{"group":"Push notifications","pages":[{"group":"Push notifications overview","root":{"title":"Push notifications overview","href":"/docs/push-notifications-overview"},"pages":[{"title":"Push SDK migration guide","href":"/docs/push-notification-migration"}]},{"group":"OneSignal","root":{"title":"OneSignal overview","href":"/docs/onesignal"},"pages":[{"title":"Managing permissions and consent","href":"/docs/user-consent-management"},{"title":"Identifying and targeting users","href":"/docs/identifying-targeting-users"},{"group":"Sending push notifications","root":{"title":"Sending push notifications","href":"/docs/onesignal-notifications"},"pages":[{"title":"Programmatic notifications","href":"/docs/programmatic-notifications"},{"title":"Foreground notifications","href":"/docs/foreground-notifications"}]},{"title":"Customize push notifications","href":"/docs/notification-customization"},{"title":"Handling notification taps","href":"/docs/handling-notifications-taps"},{"title":"In-app messages","href":"/docs/in-app-messages"},{"title":"Legacy mode","href":"/docs/onesignal-legacy-mode"}]},{"title":"Braze","href":"/docs/braze"},{"title":"Bloomreach","href":"/docs/bloomreach"},{"title":"Cordial","href":"/docs/cordial"},{"group":"Firebase Cloud Messaging (FCM)","root":{"title":"Firebase Cloud Messaging","href":"/docs/firebase-cloud-messaging"},"pages":[{"title":"Firebase Cloud Messaging","href":"/docs/firebase-cloud-messaging"},{"title":"Targeting users with Firebase Cloud Messaging","href":"/docs/fcm-identifying-targeting-users"}]},{"title":"Intercom","href":"/docs/intercom"},{"title":"Iterable","href":"/docs/iterable"},{"title":"Klaviyo","href":"/docs/klaviyo"},{"title":"Customer.io","href":"/docs/customerio"},{"title":"Microsoft Dynamics","href":"/docs/ms-dynamics"},{"title":"MoEngage","href":"/docs/moengage"},{"title":"Optimizely","href":"/docs/optimizely"},{"title":"Salesforce Marketing Cloud","href":"/docs/salesforce-marketing-cloud"},{"title":"Sendbird","href":"/docs/sendbird"}]},{"group":"Median JavaScript Bridge","pages":[{"title":"JavaScript Bridge overview","href":"/docs/javascript-bridge"},{"title":"Detecting app usage","href":"/docs/detecting-app-usage"},{"group":"npm package","root":{"title":"NPM package overview","href":"/docs/npm-package"},"pages":[{"title":"Basic usage","href":"/docs/basic-usage"},{"title":"Using listeners","href":"/docs/npm-package-usage-with-listeners"},{"title":"SPA navigation","href":"/docs/npm-package-spa-navigation"}]},{"title":"Device info","href":"/docs/device-info"},{"title":"Clipboard","href":"/docs/clipboard"},{"title":"Prompt share dialog","href":"/docs/prompt-share-dialogue"},{"title":"App resumed callback","href":"/docs/app-resumed-callback"},{"title":"Keyboard state tracking","href":"/docs/keyboard-state-tracking"},{"title":"Download file","href":"/docs/download-file"},{"title":"Clear WebView cache","href":"/docs/clear-webview-cache"},{"title":"Accessing callbacks in an iframe","href":"/docs/iframe-callbacks"},{"group":"Google Tag Manager","root":{"title":"Control your Median app with Google Tag Manager","href":"/docs/google-tag-manager"},"pages":[{"title":"Install Median's GTM tag template","href":"/docs/install-median-gtm-template"}]}]},{"group":"Native Plugins","pages":[{"title":"Native plugins overview","href":"/docs/native-plugins-overview"},{"group":"Analytics","root":{"title":"Analytics","href":"/docs/analytics"},"pages":[{"title":"Adjust","href":"/docs/adjust"},{"title":"AppsFlyer","href":"/docs/appsflyer"},{"title":"Branch.io","href":"/docs/branch-io"},{"title":"Google Firebase Analytics","href":"/docs/firebase-analytics"},{"title":"Google Firebase Crashlytics","href":"/docs/crashlytics"},{"title":"Meta App Events","href":"/docs/facebook"},{"title":"Intent Edge","href":"/docs/intent-edge"}]},{"group":"Authentication","root":{"title":"Authentication","href":"/docs/authentication"},"pages":[{"title":"Auth0","href":"/docs/auth0"},{"title":"Clerk","href":"/docs/clerk"},{"group":"Biometric authentication","root":{"title":"Face ID, Touch ID, and Android biometrics","href":"/docs/auth"},"pages":[{"title":"Apple Face ID \u0026 Touch ID","href":"/docs/apple-face-id-touch-id"},{"title":"Android biometric","href":"/docs/android-biometric-auth"}]},{"title":"Passkey authentication (WebAuthn)","href":"/docs/passkey-authentication"},{"group":"Social login","root":{"title":"Social login overview","href":"/docs/social-login"},"pages":[{"title":"Facebook Login configuration","href":"/docs/facebook-login-configuration"},{"title":"Google Sign-In configuration","href":"/docs/google-sign-in-configuration"},{"title":"Sign in with Apple configuration","href":"/docs/sign-in-with-apple-configuration"},{"title":"Website configuration","href":"/docs/social-login-website-configuration"},{"title":"Server-side redirects","href":"/docs/social-login-server-side-redirects"},{"title":"JavaScript callbacks","href":"/docs/social-login-javascript-callbacks"}]}]},{"group":"Enterprise","root":{"title":"Enterprise overview","href":"/docs/enterprise"},"pages":[{"title":"Enterprise security","href":"/docs/enterprise-plugin"},{"title":"Jailbreak/root detection","href":"/docs/jailbreak-root-detection"},{"title":"Microsoft Intune","href":"/docs/microsoft-intune"}]},{"group":"Integrations","root":{"title":"Integrations","href":"/docs/integrations"},"pages":[{"title":"AdMob native ads","href":"/docs/admob-native-ads"},{"title":"Bubble plugin","href":"/docs/bubble-plugin"},{"title":"Card.io","href":"/docs/card-io"},{"title":"Master Lock","href":"/docs/master-lock"},{"title":"RevenueCat","href":"/docs/revenue-cat"},{"group":"Social share","root":{"title":"Social share overview","href":"/docs/social-share"},"pages":[{"title":"Instagram","href":"/docs/social-share-instagram"},{"title":"Snapchat","href":"/docs/social-share-snapchat"}]}]},{"group":"Media","root":{"title":"Media","href":"/docs/media"},"pages":[{"title":"Background audio","href":"/docs/background-audio"},{"title":"JW Player","href":"/docs/jwplayer"},{"title":"Kaltura media player","href":"/docs/kaltura-media-player"},{"title":"Native media player","href":"/docs/native-media-player"},{"title":"Twilio Video","href":"/docs/twilio"},{"title":"Web screenshot","href":"/docs/web-screenshot"},{"title":"Zoom","href":"/docs/zoom"}]},{"group":"Native functionality","root":{"title":"Native functionality","href":"/docs/native-functionality"},"pages":[{"title":"AgeSafety","href":"/docs/age-safety"},{"title":"App review","href":"/docs/app-review"},{"title":"Background location","href":"/docs/background-location"},{"title":"Calendar","href":"/docs/calendar"},{"title":"Haptics","href":"/docs/haptics"},{"title":"Health Bridge","href":"/docs/health-bridge"},{"group":"In-app purchases","root":{"title":"In-App Purchases","href":"/docs/iap"},"pages":[{"title":"Apple In-App Purchases","href":"/docs/apple-iap"},{"title":"Google In-App Purchases","href":"/docs/google-iap"},{"title":"Google In-App Purchases (legacy)","deprecated":true,"href":"/docs/google-iap-legacy"}]},{"title":"Native contacts","href":"/docs/native-contacts"},{"title":"Native datastore","href":"/docs/native-datastore"},{"title":"Offline download manager","href":"/docs/offline-download-manager"},{"title":"Reader modal","href":"/docs/reader-modal"},{"title":"Secure modal","href":"/docs/secure-modal"},{"title":"Share into app","href":"/docs/share-into-app"}]},{"group":"Scanning","root":{"title":"Scanning","href":"/docs/scanning"},"pages":[{"title":"Document scanner","href":"/docs/document-scanner"},{"title":"iBeacon","href":"/docs/ibeacon"},{"title":"NFC tag scanner","href":"/docs/nfc-tag-scanner"},{"title":"QR / barcode scanner","href":"/docs/qr-barcode-scanner"},{"title":"Scandit QR / barcode","href":"/docs/scandit-qr-barcode"}]}]},{"group":"Website builders","pages":[{"title":"Website builder overview","href":"/docs/ai-app-builder-overview"},{"group":"Base44","root":{"title":"Base44","href":"/docs/base44"},"pages":[{"title":"Getting started with Base44","href":"/docs/getting-started-with-base44"},{"title":"Add push notifications to a Base44 app","href":"/docs/add-push-notifications-to-a-base44-app"},{"title":"Adding haptic feedback to your Base44 app","href":"/docs/adding-haptic-feedback-to-your-base44-app"}]},{"group":"Lovable","root":{"title":"Lovable","href":"/docs/lovable"},"pages":[{"title":"Tutorial: Build a fitness tracker app with Lovable and Median","href":"/docs/getting-started-with-lovable"},{"title":"Add push notifications to your Lovable app","href":"/docs/add-push-notifications-to-your-lovable-app"},{"title":"Add haptic feedback to your Lovable app","href":"/docs/add-haptic-feedback-to-your-lovable-app"},{"title":"Prepare your Lovable app for publishing","href":"/docs/prepare-your-lovable-app-for-publishing"}]},{"group":"Replit","root":{"title":"Replit","href":"/docs/replit"},"pages":[{"title":"Getting started with Replit","href":"/docs/getting-started-with-replit"},{"title":"Add push notifications to your Replit app","href":"/docs/add-push-notifications-to-a-replit-app"},{"title":"Add haptic feedback to your Replit app","href":"/docs/add-haptic-feedback-to-your-replit-app"}]},{"group":"Salesforce Experience Cloud","root":{"title":"Salesforce overview","href":"/docs/salesforce"},"pages":[{"title":"Getting started with Salesforce Experience Cloud","href":"/docs/getting-started-with-salesforce-experience-cloud"},{"title":"Lightning Web Components and the Median JavaScript Bridge","href":"/docs/salesforce-lwc-median"},{"title":"Deep linking for Salesforce Experience Cloud","href":"/docs/salesforce-deep-linking"},{"title":"Salesforce LWC component deployment and reference","href":"/docs/salesforce-lwc-components"}]},{"group":"Shopify","root":{"title":"Shopify","href":"/docs/shopify"},"pages":[{"title":"Using Social Login in your Shopify store's mobile app","href":"/docs/using-social-login-in-the-mobile-app-of-your-shopify-store"}]},{"title":"App monetization","href":"/docs/app-monetization"},{"title":"App marketing and growth","href":"/docs/app-marketing-growth"}]},{"group":"Build \u0026 test","pages":[{"title":"Build and test overview","href":"/docs/development-test-deep-dive"},{"title":"Median App Studio","href":"/docs/app-studio"},{"group":"Debug tools","root":{"title":"Debug tools","href":"/docs/debug-tools"},"pages":[{"title":"iOS debugging","href":"/docs/ios-debugging"},{"title":"Android debugging","href":"/docs/android-debugging"}]},{"group":"iOS build \u0026 deployment","root":{"title":"iOS build \u0026 deployment","href":"/docs/ios-build-deployment"},"pages":[{"group":"Building an iOS binary (IPA)","root":{"title":"Building an iOS binary (IPA)","href":"/docs/build-ios-binary"},"pages":[{"title":"Connecting Median with App Store Connect","href":"/docs/connecting-median-appstore-connect"},{"title":"Register testing devices","href":"/docs/registering-testing-devices"},{"title":"Configure signing for your app","href":"/docs/configure-signing-for-your-app"},{"title":"Building an iOS binary with App Groups entitlement","href":"/docs/building-an-ios-binary-for-apps-using-app-groups-entitlements"},{"title":"Install iOS IPA","href":"/docs/install-ios-ipa"}]},{"title":"Build iOS from source","href":"/docs/build-ios-from-source"},{"title":"Common Xcode issues","href":"/docs/common-xcode-issues"},{"title":"Upload an iOS app to TestFlight","href":"/docs/upload-ios-to-testflight"},{"title":"Upload iOS to Apple App Store","href":"/docs/upload-ios-to-apple-app-store"}]},{"group":"Android build \u0026 deployment","root":{"title":"Android build and deployment","href":"/docs/android-build-deployment"},"pages":[{"title":"Install Android APK","href":"/docs/install-android-apk"},{"title":"Build Android from source","href":"/docs/build-android-from-source"},{"title":"Connect Android Studio emulators to localhost websites","href":"/docs/android-studio-with-localhost-website"},{"title":"Android App Bundle (AAB)","href":"/docs/android-app-bundle"},{"title":"Upload Android to Google Play","href":"/docs/upload-android-to-google-play"}]},{"group":"App configuration \u0026 management","root":{"title":"App configuration and management","href":"/docs/app-configuration-management"},"pages":[{"title":"App identifiers","href":"/docs/app-identifiers"},{"title":"App configuration","href":"/docs/app-configuration-appconfigjson"},{"title":"Google Services","href":"/docs/google-services"},{"title":"Google developer verification","href":"/docs/google-developer-verification"},{"title":"Backup management","href":"/docs/backup-management"},{"title":"Multiple app instances","href":"/docs/multiple-app-instances"},{"title":"CI/CD integration","href":"/docs/cicd-integration"}]}]},{"group":"Publishing","pages":[{"title":"Publishing overview","href":"/docs/publishing-overview"},{"title":"Publishing guide","href":"/docs/publishing-guide"},{"title":"Publishing Service process","href":"/docs/publishing-service"},{"title":"Apple App Store","href":"/docs/apple-app-store"},{"title":"Google Play Store","href":"/docs/google-play-store"},{"title":"Screenshot specifications","href":"/docs/app-store-screenshots"},{"title":"Publishing FAQ","href":"/docs/faq-publishing"}]}]},{"tab":"Changelog","icon":"clock-rotate-left","pages":[{"title":"Changelog","href":"/docs/changelog"}]}]},"basePath":"","title":"Auto new windows - Median Docs","buildId":"dpl_8hoxaqFTU7hTr6A2fUraxAyjuiZo","deploymentId":"dpl_8hoxaqFTU7hTr6A2fUraxAyjuiZo","dynamics":["10e4515597","07c022d89b","a74be98ba7"],"chunks":["BannerMarkdown-D7Q3g8OM.js","dist-BvrGG8gU.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","clsx-B35qUV0p.js","html-void-elements-mCSPHezU.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","Frame-Dmj010Ph.js","DynamicMarkdown-GHvayGOn.js","zoom-image-lightbox-8gCTkA22.js","lightbox-handle-r17bVUz3.js"]}