Skip to content

WP data collection permalink hotfixies.#131

Open
Liblastic wants to merge 7 commits intomasterfrom
data-collection-permalink
Open

WP data collection permalink hotfixies.#131
Liblastic wants to merge 7 commits intomasterfrom
data-collection-permalink

Conversation

@Liblastic
Copy link
Copy Markdown
Contributor

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

Comment thread dustpress.php
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
Copy Markdown
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.

2 participants