Гость
14 Фев 2014 11:12

I am using cobalt default router

this is my main cobalt section url

http://alkemica.net/contenuti

where "contenuti" is my joomla menu item name =>> OK

this is link to a cobalt category

http://alkemica.net/contenuti/cat/1-olistico/14-arte

where "1-olistico" is my main cobalt section alias =>> OK

but when I am on my cobalt user homepage, and I click on "back to all contents" link, then I am redirected to this link

http://alkemica.net/contenuti/contenuti/1-olistico

you can see that ir contains doubled the word "contenuti"

why is this happening?

thank you

Последние изменения: 02 Март 2014


Гость
15 Фев 2014 08:07

th e same issue happens for other links, like eg pagination links

you can test pagination links here

http://www.alkemica.net/contenuti/


Sergey
Total posts: 13,748
17 Фев 2014 00:31

try to add menu association in Section parameters.


Гость
17 Фев 2014 07:11

your suggestion seem to have solved the issue for pagination links

but NOT for "back to all contents" link in user homepage (see screenshot in main topic above)

Скрытый текст


Sergey
Total posts: 13,748
18 Фев 2014 06:22

Fixed. You can change in markup template line 107

Url::records($this->section)

change to

JRoute::_(Url::records($this->section))


Гость
18 Фев 2014 08:10

thank you!

if it'll be fixed in next release I'll just wait for it

please confirm


Гость
23 Фев 2014 12:56

I updated cobalt to 8.491 version

I still had the issue

so I also corercted manually the default_markup_default.php file as you suggested

I found 2 lines containing Url::records($this->section)

I canghed both of them to JRoute::_(Url::records($this->section))

just tested, but I still have this issue

the issue is happening also for any advanced search result page

I mean that when doing an advanced search using filter the url of the results page contains the double item, as described in the main topic

you may test here

http://alkemica.net/contenuti


Гость
23 Фев 2014 13:19

update:

"the issue is happening also for any advanced search result page""the issue is happening also for any advanced search result page"

BUT ONLY if the search is being done from the main section, if is being done forma category the generated url is ok


Sergey
Total posts: 13,748
24 Фев 2014 02:59

But it is search result. crawlers will never access it. May it is not an issue that urls there are different? The start point one anyway.

I was looking on your site but could not find why it generales different URLs.


Гость
24 Фев 2014 03:17

ok Sergey, I will add a redirect rule to htaccess then, just to be sure


Sergey
Total posts: 13,748
24 Фев 2014 06:26

Ok.


Гость
24 Фев 2014 09:41

I added to my htaccess file the following rule

RedirectMatch 301 /contenuti/contenuti/(.*) http://www.alkemica.net/contenuti/ $1

bu this generates a 500 error on cobalt advanced search results

error 500 - View non trovato [name, type, prefix]: cobalt, html, cobaltView


Sergey
Total posts: 13,748
24 Фев 2014 23:02

I have no idea! I am not good at it.


Гость
25 Фев 2014 02:32

that's ok, I will seek for support on stack overflow and stop bothering you, thank you anyway Sergey.


Sergey
Total posts: 13,748
25 Фев 2014 08:19

Please bother me. I am happy to help.

The problem is only with this SEF. I just cannot understand why same URL in one place return one SEF and in other another SEF. I am trying to find out a reason of do some fix. But still not sure if it is correct.

This is mostly Joomla issue. I have menu URL

index.php?option=com_cobalt&view=records&section_id=1:section-1&Itemid=444&lang=en

and my other URLs are

index.php?option=com_cobalt&view=records&section_id=1:section-1&Itemid=444&lang=en

Absolutely identical. But for menu Joomla generate one SEF and in other cases other SEF URLs.

And this is where I am lost.


Гость
25 Фев 2014 09:52

thank you, anyway it's my site, I am not even sure it's caused with cobalt interaction, it's just that I only noticed this issue there

Работает на Cobalt