maps icon indicating copy to clipboard operation
maps copied to clipboard

link to contact not correct

Open droogi opened this issue 3 years ago • 4 comments

Hello, I had this topic in contacts, i was told to open a ticket here.

I click on a contact in the Maps app and then click on the "Open in Contacts" link in the popup. It switches to contacts, message "loading contacts", and then top right two error messages appear: group not found & contact not found. it seems that the link is not correct. Regards, droogi

https://github.com/nextcloud/contacts/issues/2050 image image

droogi avatar Feb 18 '21 11:02 droogi

Can confirm.

In Maps, an example link to a contact would be:

https://nextcloud.example.ca/apps/contacts/All%20contacts/142980f20d3862ab~contacts

That contact's actual Contact link is at:

https://nextcloud.example.ca/apps/contacts/All%20contacts/2fc9bc3b8d170c8d~User

RonaldBarnes avatar Mar 15 '21 00:03 RonaldBarnes

Is this a localization problem? I'm using Nextcloud with german language settings. My contact url is something like: https://mydomain.de/index.php/apps/contacts/Alle%20Kontakte/4effbe26-b63c-4081-bb88-509f8861468c~kontakte

The link in Map points to: https://mydomain.de/index.php/apps/contacts/All%20contacts/4effbe26-b63c-4081-bb88-509f8861468c~contacts

When I change nextcloud language to english I get https://mydomain.de/index.php/apps/contacts/All%20contacts/4effbe26-b63c-4081-bb88-509f8861468c~kontakte which is a little bit better.

If I create a new adress book, then the map links will work with contacts in this adress book. So if you create e.g. an adress book named "Contacts", it will work. (The standard adressbook in german is named "kontakte", so "contacts" is not used in when you install Nextcloud.)

Schdefoon avatar Jul 05 '21 07:07 Schdefoon

Can confirm that localization seems to be the issue.

When inspecting the link from maps on my localized version (norwegian), the link is still english {{DOMAIN}}/apps/contacts/All%20contacts/88b12cad-a479-475e-9463-597589c036c7~contacts, which does not succeed as the actual resource inside contacts is localized.

However! After changing the language to English (US) both the link from Maps and the actual resource in contacts is identical and this works as expected. I have a theory that l10n/*.json is not utilized for this, but i may be wrong.

OlavStornes avatar Sep 17 '21 14:09 OlavStornes

I don't think it's localization, at least in my case: I've got language = English (US) and Locale is English (Canada). Those are very similar, and the same settings on both a working and a non-working NC.

I now have 2 NC instances, v24.0.2, maps v0.1.10, on same server, same Apache, same PHP v7.4.3, both have address book called "Ron".

Exported contacts list "Ron" from older, "updated-from-ancient-version" instance into fresh instance's contacts list, the only contacts list in that NC, called "Ron".

One instance (fresh install) has links on the map that take me to the contact, but the same contact, with the same ID from the same-named address book / contact list redirects due to contact not found.

This (truncated URL) fails as link in Maps app: fcd8d5c8-f531-4137-af3e-0ebf8c9910dd~contacts

Bringing up that contact in Contacts app uses this URL (truncated for readability): fcd8d5c8-f531-4137-af3e-0ebf8c9910dd~ron

In fresh install instance, Maps app link (WORKS): fcd8d5c8-f531-4137-af3e-0ebf8c9910dd~contacts

And URL of contact in Contacts app: fcd8d5c8-f531-4137-af3e-0ebf8c9910dd~contacts

All the truncated URL parts match.

Is this even a Maps app issue, or a Contacts app issue?!?

I've recreated tables oc_maps_address_geo, oc_addressbooks, and still having the problem.

Any ideas? I'm out of them.

RonaldBarnes avatar Jun 22 '22 09:06 RonaldBarnes