Using relative paths in HTML auto populates full URL on save

  • Application Version - e.g., OJS

Just noticed this, so I assume it has been this way already.

Is there a way to save it using the specific code I enter, rather than having the system modify it upon save?

This becomes an issue during testing upgrades on separate servers or server moves, when the development server does not yet have an SSL certificate due to the DNS not yet being redirected. So, previous custom blocks with code already saved as HTTPS will cause issues rendering on the test server until an SSL cert is applied. Using relative links should be a way around this, as it would render the link using whatever protocol the client connected by. But, seeing as OJS seems to auto populate the relative links to full links upon save of the block, it makes this scenario problematic.