OS Property support center

SOLVED ! Remove "component/osproperty" from a link

More
8 years 7 months ago - 8 years 7 months ago #89485 by Irina
How can I remove the wording "component/osproperty" in the links/addresses of the pages that describe details of a concrete property?
For example, now I have this: www.luxvillasardinia.com/component/ospro...la-kiara-porto-cervo
Last edit: 8 years 7 months ago by Mr. Dam.

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

More
8 years 7 months ago #89505 by Mr. Dam
Replied by Mr. Dam on topic Remove "component/osproperty" from a link
Hi Irina,
Have you created menu to layout: Property Listing Layout to list properties yet?
Thanks
Dam

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

More
8 years 7 months ago #89533 by Irina
Replied by Irina on topic Remove "component/osproperty" from a link
Yes, I did

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

More
8 years 7 months ago #89534 by Benjamin
Replied by Benjamin on topic Remove "component/osproperty" from a link
I have the same problem. And I note that this is a general problem. I have created the '' menu layout '' and everything worked well before the 3.0.3.
I recreates all the layout menu but that does not change. there is always the "component/osproperty" always in the details page of each property.

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

More
8 years 7 months ago #89539 by Mr. Dam
Replied by Mr. Dam on topic Remove "component/osproperty" from a link
Hi,
Please open file:

root > components > com_osproperty > helpers > route.php

Find:
Code:
if(count($menus_found == 0)){
and change to
Code:
if(count($menus_found) == 0){

The issue will be solved.
Thanks
Dam
The following user(s) said Thank You: saman shad, Irina

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

More
8 years 7 months ago #89601 by Irina
Replied by Irina on topic Remove "component/osproperty" from a link
Solved! Thanx a lot!

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

More
8 years 5 months ago #92621 by saman shad
Replied by saman shad on topic Remove "component/osproperty" from a link
Hi
I have the same problem and I tried to solve it by your advice but I found this code in router.php
if(count($menus_found) > 0){
Please help me to remove component/osproperty/
Thanks

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

More
8 years 5 months ago #92622 by Mr. Dam
Replied by Mr. Dam on topic Remove "component/osproperty" from a link
Hi Saman,
You should setup menu to layout: Property Listing layout. Then, OS Property will use alias of that menu to properties to replace component/osproperty
Thanks
Dam

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

Moderators: Mr. DamNguyen Phu Quan