Browse Source
Merge pull request #12258 from dashevchenko/qrCodeRedirectFix
Fixed mobile redirect if ios is disabled in properties
pull/12267/head
Viacheslav Klimov
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
application/src/main/java/org/thingsboard/server/controller/QrCodeSettingsController.java
|
|
|
@ -176,7 +176,7 @@ public class QrCodeSettingsController extends BaseController { |
|
|
|
return ResponseEntity.status(HttpStatus.FOUND) |
|
|
|
.header("Location", googlePlayLink) |
|
|
|
.build(); |
|
|
|
} else if (userAgent.contains("iPhone") || userAgent.contains("iPad") && qrCodeSettings.isIosEnabled()) { |
|
|
|
} else if ((userAgent.contains("iPhone") || userAgent.contains("iPad")) && qrCodeSettings.isIosEnabled()) { |
|
|
|
String appStoreLink = qrCodeSettings.getAppStoreLink(); |
|
|
|
return ResponseEntity.status(HttpStatus.FOUND) |
|
|
|
.header("Location", appStoreLink) |
|
|
|
|