OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Rely on target and use a fallback url when parsing urls in the work packages preview controller.
Dombi Attilaa7edd068df1d
diff --git a/frontend/src/stimulus/controllers/dynamic/work-packages/dialog/preview.controller.ts b/frontend/src/stimulus/controllers/dynamic/work-packages/dialog/preview.controller.tsindex 4c890ebfc41..fccb75c9dc4 100644--- a/frontend/src/stimulus/controllers/dynamic/work-packages/dialog/preview.controller.ts+++ b/frontend/src/stimulus/controllers/dynamic/work-packages/dialog/preview.controller.ts@@ -74,8 +74,8 @@ export abstract class DialogPreviewController extends Controller {// caption and validation message unaccessible for screen readers and other// assistive technologies. This is why morph cannot be used here.this.frameMorphRenderer = (event:CustomEvent<TurboBeforeFrameRenderEventDetail>) => {- const oldFrame = event.srcElement as HTMLTurboFrameElement;- const requestUrl = new URL(oldFrame.src || '');+ const target = event.target as HTMLTurboFrameElement;+ const requestUrl = new URL(target.src || '', window.location.origin);// Do not replace the angular datepicker unless the schedule_manually flag is changed.const replaceAngularTags = requestUrl.searchParams.has('schedule_manually');