Skip to content

Conversation

@Liblastic
Copy link
Contributor

Fixes permalink data on WP object in archive views.
Tested on WPML and Polylang.

Comment on lines +669 to +671
// Get request uri safely.
$request_uri = filter_var( $_SERVER['REQUEST_URI'], FILTER_SANITIZE_URL );
$permalink = $this->dp_get_home_url() . $request_uri;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this create problems in installs that are not done on the root of a domain? If the home url was https://www.domain.com/subfolder and $request_uri was /subfolder/some-page this method would return https://www.domain.com/subfolder/subfolder/some-page.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants