Skip to content

url_helper functions don't correctly apply $baseURL #155

Description

@lonnieezell

The path portion of $baseURL is not applied correctly base_url() and system_url() functions.

Example:
$baseURL = 'http://example.com/blog/';

helper('url');
echo base_url();

// Outputs http://example.com
// Should be http://example.com/blog

Looks like the methods should use URI::resolveRelativeURI() to join the paths. And ensure the path is set correctly by IncomingRequest.

Discovered via #148

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugVerified issues on the current code behavior or pull requests that will fix them

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions