- Application Version - e.g., OJS 126.96.36.199
Just noticed this, so I assume it has been this way already.
- Go into a custom block
- Add a custom HTML link to a document on own server using the relative URL ("/index.php/downloads/example.pdf")
- Upon save, OJS prepends the https://domainame.com to the URL, so next time the code is opened for editing it says https://exampledomain.com/index.php/downloads/example.pdf
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.