Skip to content
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

Webcontainer back to start terminates app #370

Open
nc-technologie opened this issue Sep 20, 2022 · 0 comments
Open

Webcontainer back to start terminates app #370

nc-technologie opened this issue Sep 20, 2022 · 0 comments

Comments

@nc-technologie
Copy link

nc-technologie commented Sep 20, 2022

Hello,

i have a problem, i use a webcontainer as background. To navigate back in the site i am using $back. It is all ok until i go back up to the starting page (URL String) . Then the app starts to loop and terminate if i click anything.

Thats the code:

// file://start.json

{
"$jason": {
"head": {
"title": "SFVM",
"actions": {
"$foreground": {
"type": "$reload"
},
"$load": {
"type": "$set",
"options": {
"url": [{
"{{#if $params && 'url' in $params && String($params.url).includes('google.com')}}": "{{$params.url}}"
}, {
"{{#elseif $params && 'url' in $params}}": "{{$params.url}}"
}, {
"{{#else}}": "https://www.google.com/"
}]
},
"success": {
"type": "$render"
}
},
"navigate": {
"type": "$href",
"options": {
"url": "file://start.json",
"options": {
"url": "{{$jason.url}}"
}
}
}
},
"templates": {
"body": {
"header": {
"title": "{{$get.url}}"
},
"background": {
"type": "html",
"url": "{{$get.url}}",
"style": {
"background": "#ffffff",
"progress": "rgba(0,0,0,0)"
}
"action": {
"trigger": "navigate"
}
},
"footer": {
"tabs": {
"style": {
"background": "#ffffff",
"color:disabled": "#cecece",
"color": "#cecece"
},
"items": [
{
"image": "file://back.png",
"text": "Zurück",
"action": {
"type": "$back"
}
},
{
"image": "file://search-interface-symbol.png",
"text": "Suche",
"action": {
"type": "$href",
"options": {
"url": "file://start.json",
"options": {
"url": "https://www.google.com"
}
}
}

                        },
                        {
                            "image": "file://user.png",
                            "text": "Konto",
                            "action": {
                                "type": "$href",
                                "options": {
                                    "url": "file://start.json",
                                    "options": {
                                        "url": "https://google.com"
                                    }
                                }
                            }
                        }
                        ]
                        
                    }
                }
                
            }
        }
    }
}

}

I hope anyone can help my with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant