Skip to content

Commit

Permalink
Fix relative URLs validation in link widget
Browse files Browse the repository at this point in the history
This refs #160
  • Loading branch information
laulaz committed Mar 15, 2023
1 parent d2d5299 commit 0bfaeae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions news/160.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix relative URLs validation in link widget
[laulaz]
2 changes: 1 addition & 1 deletion plone/app/z3cform/templates/link_input.pt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<span class="linkLabel d-none" i18n:translate="label_external_url">External</span>
<div class="mb-3 main">
<label class="form-label" for="external" i18n:translate="help_external_url">External URL (can be relative within this site or absolute if it starts with http:// or https://)</label>
<input class="form-control" type="url" name="external" placeholder="https://domain.com"
<input class="form-control" type="text" name="external" placeholder="https://domain.com"
tal:attributes="name string:${view/name}.external;
value value" />
</div>
Expand Down

0 comments on commit 0bfaeae

Please sign in to comment.