Task #2581
Feature #2560: Enable link update of a "link updated" book
Add data-source attribute in the existing 'anchor tags'/'lurls' in the document during overwrite a book.
Start date:
08/05/2022
Due date:
08/05/2022
% Done:
100%
Estimated time:
2.00 h
Description
data-source will contain o-url of the internal link from new document
Scheme:
updateAllInternalLinksWithDataSource(oldDocContent, newDocContent): - newHrefLinks = getAllLinks(newDocContent); - oldHrefLinks = getAllLinks(oldDocContent); - for(i=0; i < oldHrefLinks.size(); i++): - oldHrefLink = oldHrefLinks[i]; - if(oldHrefLink.startsWith('document/'): - oldHrefLink.setAttribute('data-source', newHrefLinks[i]);
Updated by Ayush Khandelwal over 2 years ago
data-source will contain o-url of the internal link from new document
Updated by Venmuhilan B over 2 years ago
- Status changed from In Progress to Resolved
- % Done changed from 0 to 100
Updated by Ayush Khandelwal over 2 years ago
- Description updated (diff)
- Status changed from Resolved to Reopened
- % Done changed from 100 to 10
Updated by Venmuhilan B over 2 years ago
- Status changed from Reopened to In Progress
- % Done changed from 10 to 100
Updated by Venmuhilan B over 2 years ago
- Status changed from Resolved to Feedback
- Assignee changed from Venmuhilan B to Ayush Khandelwal
Updated by Ayush Khandelwal about 2 years ago
- Status changed from Feedback to Closed
Working as expected