📖 View this page in our documentation

You may specify levels for each URL in your app using regular expressions in the Auto New Windows option within the Link Handling section of your app builder. Alternatively, you may specify levels for each URL directly in the JSON.

Whenever a user navigates to a URL with a higher level specified, the page will load in a new window (Android Activity or iOS ViewController). Regex matches are prioritized top to bottom. If no match is found for a link, the link will open in the current level.

An example JSON formatting for BooyaFitness.com is provided below:

[
    {
      "regex": "https://www.booyafitness.com/?",
      "level": 1
    },
    {
      "regex": "https://www.booyafitness.com/workouts/browse/?",
      "level": 1
    },
    {
      "regex": "https://www.booyafitness.com/partners/browse/?",
      "level": 1
    },
    {
      "regex": "https://www.booyafitness.com/pricing/?",
      "level": 1
    },
    {
      "regex": "https://www.booyafitness.com/dashboard/?",
      "level": 1
    },
    {
      "regex": "https://www.booyafitness.com/edit/?",
      "level": 1
    },
    {
      "regex": "https://www.booyafitness.com/workouts/.+",
      "level": 2
    },
    {
      "regex": "https://www.booyafitness.com/partners/.+",
      "level": 2
    },
    {
      "regex": "https://www.booyafitness.com/videos/.+",
      "level": 3
    },
    {
      "regex": "https://www.booyafitness.com/terms",
      "level": 4
    },
    {
      "regex": "https://www.booyafitness.com/privacy",
      "level": 4
    },
    {
      "regex": "https://www.booyafitness.com/about",
      "level": 4
    },
    {
      "regex": "https://www.booyafitness.com/contact",
      "level": 4
    }
]

Single-Page-App

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: window.location.href = 'https://my-ajax-site/path";