Keyword

Canonical & Pagination

  • yaniv rozenman
  • yaniv rozenman's Avatar Topic Author
  • Offline
  • New Member
More
5 years 1 month ago #175063 by yaniv rozenman
Canonical & Pagination was created by yaniv rozenman
Hi,
According to google, on pagination pages ie:Page-2.html , the canonical rel needs to be to itsalfe and not to the main page (root page ) like with k2.
Is there any way to do that with k2?
Thanks
yaniv

Please Log in or Create an account to join the conversation.

More
5 years 1 month ago #175073 by JoomlaWorks
Replied by JoomlaWorks on topic Canonical & Pagination
This is one of the bugs that will be fixed with next week's release of K2 v2.10.3 :)

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • yaniv rozenman
  • yaniv rozenman's Avatar Topic Author
  • Offline
  • New Member
More
5 years 1 month ago #175075 by yaniv rozenman
Replied by yaniv rozenman on topic Canonical & Pagination
Thanks :)
That is a great news!

On the same subject, I saw in the last version that there is now a "canonical" in the tags page, and that is great, but i think there is a bug for the SEF link in the canonical. Instead of showing the SEF link, it shows the link with all the parameters, and there is no slash after the domain name that separates the domain from the parameters.

Thanks
yaniv

Please Log in or Create an account to join the conversation.

More
5 years 1 month ago #175080 by JoomlaWorks
Replied by JoomlaWorks on topic Canonical & Pagination
Check the K2 and demo sites too for tag listing examples:

getk2.org/show/tag/tabs
demo.getk2.org/show/tag/blog

Both work as expected.

Perhaps some third-party plugin is messing up with K2's canonical tag.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • yaniv rozenman
  • yaniv rozenman's Avatar Topic Author
  • Offline
  • New Member
More
5 years 1 month ago #175081 by yaniv rozenman
Replied by yaniv rozenman on topic Canonical & Pagination
it's working good if you select "Use relative URL path",
but if you select "Use absolute URL path" like i select for my site, the problem that i describe occur

Please Log in or Create an account to join the conversation.

More
5 years 1 month ago #175083 by JoomlaWorks
Replied by JoomlaWorks on topic Canonical & Pagination

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • yaniv rozenman
  • yaniv rozenman's Avatar Topic Author
  • Offline
  • New Member
More
5 years 1 month ago #175084 by yaniv rozenman
Replied by yaniv rozenman on topic Canonical & Pagination
I try but no change, the problem still occur

Please Log in or Create an account to join the conversation.

More
5 years 1 month ago #175085 by JoomlaWorks
Replied by JoomlaWorks on topic Canonical & Pagination
Can you provide a couple URLs to see the issue please?

Are you using any other extensions that could modify meta tags in general?

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • yaniv rozenman
  • yaniv rozenman's Avatar Topic Author
  • Offline
  • New Member
More
5 years 1 month ago #175090 by yaniv rozenman
Replied by yaniv rozenman on topic Canonical & Pagination
site.ijoomla.co.il/urbanbridesmag/tag/marvin-photography.html
site.ijoomla.co.il/urbanbridesmag/tag/mood.html

I'm using sh404 but after i cancel it and stay only with joomla SEF, the problem still occur.
When I'm changing in the k2 config to "Use relative URL path", this fix the problem, but i need to use "Use absolute URL path" for my site and with this configuration the problem occur.

Let me know if you need more details to investigate this problem
Thanks
yaniv

Please Log in or Create an account to join the conversation.

More
5 years 1 month ago #175112 by JoomlaWorks
Replied by JoomlaWorks on topic Canonical & Pagination
The code is pretty straightforward in K2. Are you perhaps using any plugin that corrects URLs? Something that would swap absolute to relative URLs?

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • yaniv rozenman
  • yaniv rozenman's Avatar Topic Author
  • Offline
  • New Member
More
5 years 1 month ago - 5 years 1 month ago #175117 by yaniv rozenman
Replied by yaniv rozenman on topic Canonical & Pagination
No, in k2 config there is options for use relative URL or absolute, and if i chose absolute, this brake the url in the canonical link on tags pages
I tryied it also with new install on new and fresh joomla with 0 plugin and components only k2 and you can see it
site.ijoomla.co.il/joomla/tag-test.html

On Item and category pages the canonical link work perfect, only the tags pages this bug occur.

If you want you can access the admin:

site.ijoomla.co.il/joomla/administrator
user: [redacted]
password: [redacted]

Thanks
yaniv
Last edit: 5 years 1 month ago by JoomlaWorks. Reason: Redacted credentials - remember the forum is public ;)

Please Log in or Create an account to join the conversation.

More
5 years 1 month ago - 5 years 1 month ago #175129 by JoomlaWorks
Replied by JoomlaWorks on topic Canonical & Pagination
The issue seems to be occur when Joomla is in a subfolder.

I made a change in K2 v2.10.3 (dev). Install it from getk2.org/downloads/?f=K2_Development_Release.zip and let me know.

It should work now and the URL will also be SEF when SEF URLs are enabled in Joomla (previously it wasn't).

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Last edit: 5 years 1 month ago by JoomlaWorks.

Please Log in or Create an account to join the conversation.

More
5 years 1 month ago - 5 years 1 month ago #175130 by JoomlaWorks
Replied by JoomlaWorks on topic Canonical & Pagination
The previous commit introduced an error for other views.

I have fixed that plus made some changes for generated feed links.

Now all canonical and feed URLs have a common format across views (feeds will always be relative though).

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Last edit: 5 years 1 month ago by JoomlaWorks.

Please Log in or Create an account to join the conversation.

More
4 years 11 months ago #175566 by T M
Replied by T M on topic Canonical & Pagination
I am experiencing a similar issue.

www.website.com/blog/content/travel-blog/whats-new (404 error)

Where /travel-blog/ is not supposed to be in the url. It should be:

www.website.com/blog/content/whats-new (works)

I could setup a redirect but this doesn't solve the issue permanently. The pagination results for the additional pages also result in a 404 error as they include the /travel-blog/ in the path which isn't needed.

I have tried absolute path and relative path. both give me the 404 error.

Please Log in or Create an account to join the conversation.

More
4 years 11 months ago #175573 by T M
Replied by T M on topic Canonical & Pagination
The extra slug in the url is coming from a menu item for joomla categories.

How can this be fixed?

Please Log in or Create an account to join the conversation.

More
4 years 11 months ago #175588 by JoomlaWorks
Replied by JoomlaWorks on topic Canonical & Pagination
That's not possible. A menu item for Joomla categories (not K2) cannot affect K2 URLs.

What is the path to your K2 category? Is it a first or 2nd, 3rd etc. level category?

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
4 years 11 months ago - 4 years 11 months ago #175608 by T M
Replied by T M on topic Canonical & Pagination
It's not a menu item that is causing the extra slug.

I believe it might be the absolute path/relative path being the issue? It's doesn't make a difference if I select either in settings.

It's when you are on a K2 page and the item is displaying the category. If you click the category it goes to a 404 error.

Instead of just www.website.com/blog/content/whats-new - whats-new is the category I am clicking

It for some reason goes to this: www.website.com/blog/content/travel-blog/whats-new - which gives a 404 error because it's the wrong path.

Where /travel-blog/ is not supposed to be in the url. The travel-blog is the alias of the menu item link I have created to display the K2 blog. I assume it things the path of the link is travel-blog/whats-new when it is just /whats-new.

It also ads the additional path on the page pagination at the bottom. So if you click next,prev,end or any of the pages they return a 404 error because it ad's the "travel-blog" to the path.

I don't want to use redirects, there has to be a way to resolve this.
Last edit: 4 years 11 months ago by T M.

Please Log in or Create an account to join the conversation.

More
4 years 11 months ago #175629 by JoomlaWorks
Replied by JoomlaWorks on topic Canonical & Pagination
Switch to the URL router from v2.10.2 for now.

Read how to do it here: www.joomlaworks.net/forum/k2-de/53846-fehlermeldungen-in-router-php-line-292#175618

K2 v2.10.4 will be out by the end of the week to address this issue.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum