Commit d4d7dec9 authored by Marcelo Rivera's avatar Marcelo Rivera

(fix): use redirectUrl if provided to media modal

1 merge request!528WIP: (feat): Minds Pro
Pipeline #81110184 failed with stages
in 5 minutes and 16 seconds
......@@ -177,7 +177,9 @@ export class MediaModalComponent implements OnInit, OnDestroy {
break;
}
if (this.contentType !== 'blog') {
if (this.redirectUrl) {
this.pageUrl = this.redirectUrl;
} else if (this.contentType !== 'blog') {
this.pageUrl = `/media/${this.entity.entity_guid}`;
} else {
this.pageUrl = this.entity.route
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment