v0.1.14 mini fix on resolving hostnames links

This commit is contained in:
Yann Stepienik 2023-04-09 20:34:40 +01:00
parent 2ab21e7a5e
commit d8870191c6
2 changed files with 5 additions and 2 deletions

View file

@ -287,7 +287,10 @@ const ServeApps = () => {
color="primary"
style={{paddingRight: '4px'}}
onClick={() => {
window.open(route.Host + route.PathPrefix, '_blank');
if(route.UseHost)
window.open(window.location.origin.split("://")[0] + "://" + route.Host + route.PathPrefix, '_blank');
else
window.open(window.location.origin + route.PathPrefix, '_blank');
}}
onDelete={() => {
window.open('/ui/config/proxy#'+route.Name, '_blank');

View file

@ -1,6 +1,6 @@
{
"name": "cosmos-server",
"version": "0.1.13",
"version": "0.1.14",
"description": "",
"main": "test-server.js",
"bugs": {