Coming soon: New subdomain URL format and customizable subdomains!

Hello :wave:

Over the past year, one request we’ve consistently heard from the Streamlit community is the ability to modify hosted app URLs. We’ve been working hard here at Streamlit to build this feature and are excited to be bringing it to you! The launch will consist of two parts:

Step 1. Move to unique subdomains on July 21st, 2022

We’re changing the URL scheme to use subdomains instead of URL paths. This new design helps better resolve issues like apps not rendering on certain browsers. With this update, Streamlit apps will now render on all major browsers—Chrome, Safari, Firefox, as well as their mobile counterparts. :partying_face:

Below is an example of the new structure:

To maintain existing apps, we will automatically redirect from existing app URLs to your app’s new unique subdomain URL.

For embedded apps:

  1. Streamlit Community Cloud will support embedding public apps using the new subdomain scheme(for e.g. https://unique-generated-subdomain-hgezi7.streamlitapp.com/?embedded=true)
  2. There will be no official support for embedding private apps.

:point_right: We plan to make the transition to unique subdomains on July 21st, 2022.

Step 2. Customizable subdomains in the near future!

Now the exciting part :tada:—subdomains will also soon be customizable! With this step you’ll be able modify your app URLs to reflect your app content, personal branding, or whatever you’d like.

The app URL will appear as:

your-custom-subdomain.streamlitapp.com

These subdomains will require a minimum of 6 characters, but otherwise the opportunities are endless!

Sign up for early access to try out customizable URLs in the beta here. [UPDATE: Beta now Closed]. If you run into any issues with the new unique subdomain structure, feel free to let us know. :balloon:

9 Likes

I have a problem with embedding the app. Using ?embedded=true works initially for my public app. But if one leaves the site open in a tab (and I know a lot of the users do it), after about 1 hour, it spawns a browser error stating that “the page redirected too many times” (Chrome) or “the page isn’t redirecting properly” (Firefox).

The embedding index.html is saved at GitHub Pages and looks as follows:

<html>
<head>
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<title>Solar-MACH</title>
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🛰️</text></svg>">
</head>
<body style="margin:0px;padding:0px;overflow:hidden">
  <iframe src="https://solar-mach.streamlitapp.com/?embedded=true" frameborder="0" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;height:100%;width:100%;position:absolute;top:0px;left:0px;right:0px;bottom:0px" height="100%" width="100%"></iframe>
</body>
</html>

Does anyone know what the problem is? Is the app shut down after that time or something like this? :thinking: