mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-04-08 00:27:44 -04:00
Fix iOS item create deep link (#1473)
This commit is contained in:
@@ -103,7 +103,7 @@ public struct AutofillCredentialCard: View {
|
||||
}
|
||||
|
||||
Button(action: {
|
||||
if let url = URL(string: "aliasvault://credentials/\(credential.id.uuidString)") {
|
||||
if let url = URL(string: "aliasvault://items/\(credential.id.uuidString)") {
|
||||
UIApplication.shared.open(url)
|
||||
}
|
||||
}, label: {
|
||||
@@ -111,7 +111,7 @@ public struct AutofillCredentialCard: View {
|
||||
})
|
||||
|
||||
Button(action: {
|
||||
if let url = URL(string: "aliasvault://credentials/add-edit-page?id=\(credential.id.uuidString)") {
|
||||
if let url = URL(string: "aliasvault://items/add-edit-page?id=\(credential.id.uuidString)") {
|
||||
UIApplication.shared.open(url)
|
||||
}
|
||||
}, label: {
|
||||
|
||||
@@ -60,10 +60,10 @@ public struct CredentialProviderView: View {
|
||||
if !viewModel.isChoosingTextToInsert {
|
||||
VStack(spacing: 12) {
|
||||
Button(action: {
|
||||
var urlString = "aliasvault://credentials/add-edit-page"
|
||||
var urlString = "aliasvault://items/add-edit-page"
|
||||
if let serviceUrl = viewModel.serviceUrl {
|
||||
let encodedUrl = serviceUrl.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed) ?? ""
|
||||
urlString += "?serviceUrl=\(encodedUrl)"
|
||||
urlString += "?itemUrl=\(encodedUrl)"
|
||||
}
|
||||
if let url = URL(string: urlString) {
|
||||
UIApplication.shared.open(url, options: [:], completionHandler: nil)
|
||||
@@ -121,10 +121,10 @@ public struct CredentialProviderView: View {
|
||||
ToolbarItem(placement: .navigationBarTrailing) {
|
||||
HStack {
|
||||
Button(action: {
|
||||
var urlString = "aliasvault://credentials/add-edit-page"
|
||||
var urlString = "aliasvault://items/add-edit-page"
|
||||
if let serviceUrl = viewModel.serviceUrl {
|
||||
let encodedUrl = serviceUrl.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed) ?? ""
|
||||
urlString += "?serviceUrl=\(encodedUrl)"
|
||||
urlString += "?itemUrl=\(encodedUrl)"
|
||||
}
|
||||
if let url = URL(string: urlString) {
|
||||
UIApplication.shared.open(url, options: [:], completionHandler: nil)
|
||||
|
||||
Reference in New Issue
Block a user