-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow unique start_url for subdomains #470
Comments
I think this depends on https://storage.spec.whatwg.org/#site |
@marcoscaceres have you heard any news about this? I'm really looking forward to use this 👊 |
@thomaspessato, not yet, sorry :( |
Just to let it clear: We have articles published inside subdomains, like: sports.example.com, politics.example.com. So the best start_url when the user get prompted while reading an article should be the home: www.example.com |
@gui-poa Would you please elaborate on your example? Would there be a single PWA for example.com or would there potentially be multiple PWAs for sports.example.com and politics.example.com? |
Both... Like this: games.example.com -> games.example.com (start_url) ANOTHER PWA |
Trying to make sure I understand the set-up ... There is one PWA with Manifest hosted at {
"name": "Example PWA",
"start_url": "example.com"
} There is another PWA with Manifest hosted at {
"name": "Another PWA",
"start_url": "games.example.com"
} These Manifests are referenced on the respective HTML pages: HTML page HTML page HTML page @gui-poa Is this an accurate description of the set-up ?
|
Yes, you are right. So talking about the first PWA (example.com and its subdomains[articles]) Today the user is never getting prompted while reading an article because of this: manifest-br.json:1 Manifest: property 'start_url' ignored, should be same origin as document. Thanks for your attention, Rob. |
I guess a real case would be better to explain. It's not allowed to add to homescreen (www.terra.com.br) from here |
Rob, do you think this request is reasonable? I'm planning a project to start killing the subdomains around here in the near future. |
No problem. :) |
Answers are not straightforward honestly! |
Even with the access-control-allow-origin header in the manifest.json, it's not possible to use the same start_url for subdomains.
Manifest: property 'start_url' ignored, should be same origin as document.
It would be great to set the homepage in start_url for article pages in different subdomains.
https://twitter.com/jaffathecake/status/742415227015303168
The text was updated successfully, but these errors were encountered: