Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WP data collection permalink hotfixies. #131

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

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.

None yet

2 participants