We are moving to Git Issues for bug tracking in future releases. During transition, content will be in both tools. If you'd like to file a new bug, please create an issue.

Bug 8567 - Support protocol-relative URLs in base_url[...] configs
Support protocol-relative URLs in base_url[...] configs
Status: RESOLVED FIXED
Product: OMP
Classification: Unclassified
Component: General
1.1
All All
: P3 normal
Assigned To: PKP Support
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-19 10:06 PST by Alec Smecher
Modified: 2014-02-19 10:08 PST (History)
0 users

See Also:
Version Reported In:
Also Affects:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alec Smecher 2014-02-19 10:06:12 PST
See http://pkp.sfu.ca/support/forum/viewtopic.php?f=40&t=11626 --

Defining base_url[...] directives currently requires a fixed protocol (e.g. http or https). Mixing this in http configuration with force_login_ssl causes subrequests of https pages to go out with http urls; this is a bad idea and also doesn't work.
Comment 1 Alec Smecher 2014-02-19 10:07:37 PST
Solution: apply the attached patch in lib/pkp.

Thereafter, you should be able to configure protocol-relative base_url[...] directives, e.g.:

base_url[myJournal] = //index.php/myJournal

(beginning with // indicates a protocol-relative URL, implying http: or https: at the beginning, depending on the current context)
Comment 2 Alec Smecher 2014-02-19 10:08:02 PST
Support protocol relative URLs in base_url[...]
https://github.com/pkp/pkp-lib/commit/74040d64225a9f097aad3ca8681739a99c48f0bc