Jasonette / Jasonette/JASONETTE-iOS

Webcontainer back to start terminates app

Open
#370 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.2k
Forks
347
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the navigation flow defined in file://start.json, especially using $back to return to the starting page while the webcontainer is in the background. Trace the $href and navigate actions and determine why the app loops or terminates after returning to the start URL; done means the back action returns safely without the loop or termination.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.