0013360: CardDAV URL in Adressbook Properties contains #/Addressbook/
[tine20] / tine20 / Addressbook / js / CardDAVContainerPropertiesHookField.js
index 3093883..e90268d 100644 (file)
@@ -46,7 +46,7 @@ Tine.Addressbook.CardDAVContainerPropertiesHookField = Ext.extend(Ext.form.TextF
         this.hidden = ! this.isAddressbook;
         // cardDAV URL
         this.value = [
-            window.location.href.replace(/\/?(index\.php.*)?$/, ''),
+            Tine.Tinebase.common.getUrl('full').replace(/\/$/, ''), // might have an trailing /, we can safely remove it!
             '/addressbooks/',
             Tine.Tinebase.registry.get('currentAccount').contact_id,
             '/',