Domain attribute and collection URLs are not working on coko site preview
cc @jordandc
Expected behaviour
URLs provided in BCMS settings should display on previews. Users should not be able to save invalid URLs which don't contain 'http://' or 'https://'
Current behaviour
URLs provided in BCMS settings are not resolving because the user didn't include 'http://' or 'https://'.
Steps to reproduce
- Click on publisher name link - see error
- Click on cover link - see error
Possible solution
Require links in forms to include 'http://' or 'https://', and add user help text in the form to clarify the requirement for the link: "The link format must include 'http://' or 'https://' "
Priority
Y (updated after DDWG 16 FEB)
QA Steps
- Create a new book
- Go to
Settings
and in the section "Landing Page: Links" fill in:
- Publisher URL
- Citation Self URL
- Special Publisher Link URL
-
Notice that if the URL you typed does not start with 'http://' or 'https://' you are get the message
URL should start with https:// or http://
and you are not able to save. -
Check these links by clicking them in the Preview of the book, after a successful
Previewing
status.
Alternatively you can edit these settings on an existing book and check the links after you get the book in successful Previewing
status.