mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-24 14:05:58 +03:00
Do not add double slash to login flow url
If the entered url ends with a slash we should not add another one. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
218ffd0cd8
commit
7c1401da1c
1 changed files with 4 additions and 1 deletions
|
@ -35,7 +35,10 @@ void WebViewPage::initializePage() {
|
|||
url = "https://nextcloud.com/register";
|
||||
} else {
|
||||
url = _ocWizard->ocUrl();
|
||||
url += "/index.php/login/flow";
|
||||
if (!url.endsWith('/')) {
|
||||
url += "/";
|
||||
}
|
||||
url += "index.php/login/flow";
|
||||
}
|
||||
qCInfo(lcWizardWebiewPage()) << "Url to auth at: " << url;
|
||||
_webView->setUrl(QUrl(url));
|
||||
|
|
Loading…
Reference in a new issue