You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most URL templates allow only relative (to the current page) or absolute (protocol, host etc.) links.
It would be nicer if template designers have more control over the generated URLs without touching the odd translate functions.
Instead, it would be nice to allow protocol-relative and host-relative paths in all URLs passed to the templates.
protocol-relative URLs make it easy to run http and https version of the same site without modification of the rendered HTML. Instead of publishing links as http://example.com/xx/yyyy/index.html, the link would be just //example.com/xx/yyyy/index.html. When switching protocols, the entire site remains functional without the need of maintaining the a separate site.
host-relative URLs start with omit the host part of the URL and start with the site root. This is extremely helpful if running the same site under the different URLs (e.g., www.example.com and example.com). Host-relative URLs would transform http://example.com/xx/yyyy/index.html into /xx/yyyy/index.html. This makes stylesheets and javascript links much nicer and shorter.
Most URL templates allow only relative (to the current page) or absolute (protocol, host etc.) links.
It would be nicer if template designers have more control over the generated URLs without touching the odd translate functions.
Instead, it would be nice to allow protocol-relative and host-relative paths in all URLs passed to the templates.
protocol-relative URLs make it easy to run http and https version of the same site without modification of the rendered HTML. Instead of publishing links as
http://example.com/xx/yyyy/index.html
, the link would be just//example.com/xx/yyyy/index.html
. When switching protocols, the entire site remains functional without the need of maintaining the a separate site.host-relative URLs start with omit the host part of the URL and start with the site root. This is extremely helpful if running the same site under the different URLs (e.g.,
www.example.com
andexample.com
). Host-relative URLs would transformhttp://example.com/xx/yyyy/index.html
into/xx/yyyy/index.html
. This makes stylesheets and javascript links much nicer and shorter.This is part of separating the features of #710
The text was updated successfully, but these errors were encountered: