- Issue created by @gslexie
- πΊπΈUnited States gslexie
Attached patch to transform the URLs. This does 3 things:
- Replace the existing relativeToAbsoluteUrls function with a general purpose sanitization function, which calls the relative to absolute function and also calls a new function to transform drupal.org links to Project Browser links. This could also be extended with additional sanitization operations in the future.
- Adds the function drupalOrgToProjectBrowser to transform drupal.org links to Project Browser links. This logic was included in the ProjectBrowserSource plugin so that custom sources can potentially link to projects in other locations and can choose to apply their own logic for the correct behaviour of those links.
- Replace the logic in ModulePage.svelte that adds target="_blank" to all links with conditional logic in drupalOrgToProjectBrowser to add target="_blank" to all links except the newly transformed links, which will forcibly open in the same browser window instead.
- last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed 20:51 16:26 Running- Status changed to Needs review
over 1 year ago 2:30am 9 June 2023