Opened 9 months ago

Last modified 8 weeks ago

#5418 new change

Add "http" to links starting with "www."

Reported by: juliandoucette Assignee:
Priority: Unknown Milestone: Websites editing service
Module: Sitescripts Keywords:
Cc: ferris, kvas, jsonesen, ire Blocked By:
Blocking: Platform: Unknown / Cross platform
Ready: no Confidential: no
Tester: Unknown Verified working: no
Review URL(s):

Description

Background

We are currently localizing links beginning with www. e.g. <a href="www.example.com"> to <a href="http://localhost:5000/en/www.example.com. And I think that www. is enough of a hint that we are trying to link to an external website.

What to change

Convert links beginning with www. to http://www..

Change History (7)

comment:1 Changed 9 months ago by juliandoucette

Of course, I acknowledge that www is usually (but not always) unnecessary and we should always include http(s)://. But we also want to lower the bar for non-developers to publish content on our websites. And I think this is a good example of doing that.

comment:2 Changed 9 months ago by kvas

How are we going to choose between http and https?

comment:3 Changed 9 months ago by juliandoucette

How are we going to choose between http and https?

Good question.

  1. On the one hand, http is the only safe option given no more information.
  1. On the other hand [we prefer https, we want to encourage https, https has become so common].
  1. Or we could change the warning into an error (we know that this will not cause errors in our existing websites because we have been paying attention to the warnings).

(I think 1 & 3 are the most fool-proof solutions... I trust your judgement.)

Last edited 9 months ago by juliandoucette (previous) (diff)

comment:4 Changed 8 months ago by juliandoucette

Afterthought: Make (http | https) configurable via settings.ini and CLI.

comment:5 Changed 8 months ago by juliandoucette

  • Milestone set to Websites editing service

comment:6 follow-up: Changed 8 weeks ago by juliandoucette

(I could implement this myself if you implemented #5653)

comment:7 in reply to: ↑ 6 Changed 8 weeks ago by kvas

Replying to juliandoucette:

(I could implement this myself if you implemented #5653)

This sounds like a good idea.

Note: See TracTickets for help on using tickets.