Edgewall Software
Modify

Opened 6 years ago

Last modified 17 months ago

#12567 new enhancement

Image macro should support protocol-relative URLs

Reported by: Ryan J Ollos Owned by:
Priority: normal Milestone: next-dev-1.7.x
Component: wiki system Version:
Severity: normal Keywords: imagemacro
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

For example, //www.edgewall.org/gfx/trac_bullet.png could be used on WikiStart.

URLs starting with // should be interpreted as protocol-relative. Unfortunately, the Image macro interprets URLs starting with // as server-relative. If we were starting again, I might suggest we use something like ^// for server-relative.

The only idea I have is to use :// to indicate protocol-relative URLs. Other ideas are welcome.

Attachments (0)

Change History (13)

comment:2 by lkraav <leho@…>, 6 years ago

It doesn't sound sensible to require custom markup for standard things.

// should be interpreted as protocol-relative, / server-relative, with no further specification needed.

comment:3 by Ryan J Ollos, 6 years ago

We cannot change the existing implementation and break uses of Image macro in existing installations.

comment:4 by Jun Omae, 6 years ago

It might be good to support also protocol-relative URL to TracLinks#Server-relativelinks.

comment:5 by Ryan J Ollos, 6 years ago

Protocol-relative links is probably a good idea. I looked at making the change, but it's pretty extensive and I don't think I'll find time to implement it now.

comment:6 by anonymous, 6 years ago

Hi Ryan,

First I'd like to thank the TRAC team for their excellent work.

I agree with comment:3.

I have aprox. 20 TRAC instances running and I would rather bite the bullet and update the all TRAC DBs via an sql script. I like TRAC in particular for the TracLinks and if things can be standardised - even better.

In the same context, I miss putting relative links into the trac.ini. Can this be improved as well ?

in reply to:  6 ; comment:7 by Ryan J Ollos, 6 years ago

Replying to anonymous:

In the same context, I miss putting relative links into the trac.ini. Can this be improved as well ?

Specifically, for which options do you want to use relative links?

in reply to:  7 ; comment:8 by anonymous, 6 years ago

Replying to Ryan J Ollos:

Replying to anonymous:

In the same context, I miss putting relative links into the trac.ini. Can this be improved as well ?

Specifically, for which options do you want to use relative links?

I'd like to use relative links in mainnav together with https://trac-hacks.org/wiki/MenusPlugin. Do you think that's possible ?

in reply to:  8 comment:9 by Ryan J Ollos, 6 years ago

Replying to anonymous:

I'd like to use relative links in mainnav together with https://trac-hacks.org/wiki/MenusPlugin. Do you think that's possible ?

Could you give a specific example of how you'd configure [mainnav] with a relative link?

comment:10 by Christian Boos, 5 years ago

Milestone: 1.3.1next-dev-1.3.x

Moving to some later 1.3.x version.

comment:11 by Ryan J Ollos, 3 years ago

Milestone: next-dev-1.3.xnext-dev-1.5.x

Milestone renamed

comment:12 by Ryan J Ollos, 3 years ago

Owner: Ryan J Ollos removed
Status: assignednew

comment:13 by Ryan J Ollos, 17 months ago

Milestone: next-dev-1.5.xnext-dev-1.7.x

Milestone renamed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.