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

The link leads to a Web page (Windows 7) v2.1.0a19 #93

Open
ylomakin opened this issue Mar 7, 2016 · 9 comments
Open

The link leads to a Web page (Windows 7) v2.1.0a19 #93

ylomakin opened this issue Mar 7, 2016 · 9 comments

Comments

@ylomakin
Copy link
Collaborator

ylomakin commented Mar 7, 2016

1 - Go to the Account (miner)
2 - Go to the Mining / Advanced / alert.
3 - Click on the link "IOS or Android version Dcoin"
kaxdbdqu4ynxla
Result: The application takes you to a web page, then you can not go back and have to shut down the application.

vm6595wcx1o8kr

1 - Зайти в аккаунт (майнер)
2 - Перейти на Майнинг / Дополнительно / Уведомления.
3 - Нажать на ссылку "IOS или Android версии Dcoin"
Результат: В приложении осуществляется переход на веб-страницу, после чего вернуться назад нельзя и нужно выключать приложение.

@ylomakin
Copy link
Collaborator Author

Думаю, что должно открыть браузер и в нём уже открыть ссылку.

@ylomakin ylomakin self-assigned this Mar 12, 2016
@ylomakin ylomakin reopened this Mar 13, 2016
@ylomakin ylomakin removed the Recheck label Mar 15, 2016
@ylomakin
Copy link
Collaborator Author

Сделал чтобы ссылка открывалась в новом окне, что должно было привести к открытию этой ссылки в браузере. Но приложение не выпускает за свои пределы.

bdabed6479

Может кто-то помочь с этим багом?

@ylomakin ylomakin removed their assignment Mar 15, 2016
@gentee
Copy link
Collaborator

gentee commented Mar 16, 2016

Можно сделать через ajax запрос по ссылке и там открывать ссылку в браузере как-то так

func LinkOpen( homepage string ) {
       switch runtime.GOOS {
        case "linux":
            exec.Command("xdg-open", homepage).Start()
        case "windows":
            exec.Command(`rundll32.exe`, `url.dll,FileProtocolHandler`, homepage).Start()
        case "darwin":
            exec.Command("open", homepage).Start()
        }
    }
}

Для Android я правда не знаю какой вариант подойдет, нужно будет пробовать.

@c-darwin
Copy link
Collaborator

Да нет же. В menu.html есть внешние ссылки <a href="{{.Lang.wiki_url}}" onclick='THRUST.remote.send("{{.Lang.wiki_url}}")' target="_blank">Wiki</a> https://github.com/democratic-coin/dcoin-go/blob/master/packages/dcoin/dcoin.go#L520 - а там их ловит go и открывает браузер

@ylomakin
Copy link
Collaborator Author

@c-darwin А внешние ссылки открываются в линуксе, на маке и в Win 10.
В 7-ой винде не работает(

@ylomakin ylomakin self-assigned this Mar 26, 2016
@ylomakin ylomakin reopened this Mar 29, 2016
@ylomakin ylomakin removed the Recheck label Mar 29, 2016
@ylomakin
Copy link
Collaborator Author

Баг почти исправлен.
Вот это так и остаётся #93 (comment), но ссылка открывается как нужно (в браузере).
Проблема открытия в Windows 7 так и осталась (и это абсолютно для всех внешних ссылок)

@gentee
Copy link
Collaborator

gentee commented Jun 10, 2016

Похоже что ссылки на данный момент не работают пока только на Windows 7 Ultimate. Непонятно, то ли из-за конфигурации конкретной машины, то ли вообще на всех Ultimate.
На виртуальной Windows 7 и Windows 7 Home 32bit переход по ссылкам работает. Для Ultimate видимо придется тест какой-то делать.

@gentee
Copy link
Collaborator

gentee commented Jul 22, 2016

Нужно проверить еще раз Windows 7 Ultimate работу ссылок.

@ylomakin
Copy link
Collaborator Author

Неа, у меня не заработало

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

No branches or pull requests

3 participants