if ($item->{url}) {
my $url = Mojo::URL->new($item->{url});
if ($url->is_abs) {
- $params->{url} = $item->{url};
- my $footer = $c->tt2renderer->render("system/submission/footer", {url => $item->{url}});
- $params->{introtext} = $params->{introtext} . $footer;
+ $params->{url} = $url;
}
else {
$message = "invalid_url";
this.message = "";
this.previewTitle = resp.item.title;
this.previewIntro = resp.item.intro_text;
+ this.item.url = this.editor.url;
this.item.primary_topic = resp.item.topic;
this.updatePrimaryTopicIconURL();
title: function (val, oldVal) {
this.item.title = (val.length > 0) ? this.quoteTitle(val) : "";
},
+ url: function (val, oldVal) {
+ this.item.url = (val.length > 0) ? val : "";
+ },
};
const methods = {