Redirecting mobile users

Did you try the last codes I wrote?

If not working, last attempt, let’s abandon naming the devices and let’s use the window width (it works on my end).

<script>
function redirectToURL() {
    var windowWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;

    if (windowWidth < 768) {
        window.location.href = 'https://smartphone-url.com';
    } else if (windowWidth >= 768 && windowWidth < 1024) {
        window.location.href = 'https://tablet-url.com';
    } else {
        window.location.href = 'https://desktop-url.com';
    }
}

redirectToURL();
</script>

in the second version smartphone and desktop is ok but on the tablet appears what on the desktop and should be something else

In the third version, only the desktop works properly. Where the smartphone displays what I entered for the tablet, and the tablet displays what I entered for the desktop

In the latest version, the url for smartphone and desktop works correctly and the tablet shows what I entered for desktop and the url entered for tablet does not show.

We are so close and we can’t hit it with this tablet

Unfortunately I won’t be able to help more as the last script works fine on my end with the window width.
You can reach out to the customer service in the Softr studio so they can try to provide something else but I’m not sure.

The first url is or mobile, the second is for tablet, the third is for desktop.

<script>
function redirectToURL() {
    var windowWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;

    if (windowWidth < 768) {
        window.location.href = 'https://smartphone-url.com';
    } else if (windowWidth >= 768 && windowWidth < 1024) {
        window.location.href = 'https://tablet-url.com';
    } else {
        window.location.href = 'https://desktop-url.com';
    }
}

redirectToURL();
</script>

Did you enter a different url for each device?

Yes, for sure.

Then what could be the reason that in you it works and in me it does not?

Could a tablet from Apple be the reason?

No idea why, without having access to your app, code, testing process = I can’t debug properly unfortunately.

As I told you, customer support that you can contact in the Softr studio might have other insights about your app and how it behaves on tablet.