Keyword

Canonical & Pagination

  • yaniv rozenman
  • yaniv rozenman's Avatar Topic Author
  • Offline
  • New Member
More
4 years 1 month ago - 4 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: 4 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
4 years 1 month ago - 4 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: 4 years 1 month ago by JoomlaWorks.

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

More
4 years 1 month ago - 4 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: 4 years 1 month ago by JoomlaWorks.

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

More
3 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
3 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
3 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
3 years 11 months ago - 3 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: 3 years 11 months ago by T M.

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

More
3 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