feat: Support loading from alternate path
See original GitHub issueAt runtime, we should support the use case of loading a file other than /index.html
. For example: __app.html
or en-US/index.html
. This could also be a configuration option, but we should be able to override it at runtime to allow for use cases such as this: https://github.com/ionic-team/capacitor/discussions/3905
see https://github.com/ionic-team/capacitor/pull/3405 depends on https://github.com/ionic-team/capacitor/issues/3913
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Fire Apparatus Access Roads
Access Road Location Requirements. Fire department access roads must be provided so fire apparatus can drive within 50 ft (15 m) of an...
Read more >Cargo Securement Rules | FMCSA
Loaded vehicles with a high center of gravity roll over at a lateral acceleration above 0.35 g. Lightly loaded vehicles, or heavily loaded...
Read more >API — Flask Documentation (2.2.x)
static_url_path (Optional[str]) – can be used to specify a different path for the static files on the web. Defaults to the name of...
Read more >Wide Load Regulations, Rules, Flags and Permit Costs by ...
Any load that exceeds 16 feet in width becomes a "superload" and subject to more requirements to ensure that the load can be...
Read more >Article 230 - Services
Conductors and equipment on the load side of service equipment are considered ... Service conductors cannot pass through the interior of another building...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This work well. I prepared this html:
Note: Capacitor require
path/index.html
. So subpath cannot be restored.Thanks @UltraCakeBakery for your feedback.
My idea is to pack capacitor with all language folders produced by ng build and add an index.html file on the root folder. The root index file has just to check the device’s preferred language and redirects to the correct folder.
What do you think?