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

Fixed the google preview and the canonical link to respect the templa… #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gmclelland
Copy link

…te's slashurls setting as stated in #35

Also removed a trailing "." in the Google Preview's Description

Hope that helps

@gmclelland
Copy link
Author

I believe this may be a bug in the Processwire API. Here is the referenced bug report processwire/processwire-issues#187

You were using $page->httpUrl and I changed that to $page->url(true).

Anyways, the way I do it in my pull request should fix it without people having to wait for the bug to be fixed in Processwire.

I assuming this is important to fix because currently MarkupSEO is outputting the wrong value for the canonical links on people's websites.

@gmclelland
Copy link
Author

This is now fixed in core, but I would recommend merging this pull request so that it fixes the previous versions of Processwire with MarkupSEO.

@gmclelland
Copy link
Author

You're right, thanks for the heads up.

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