Panneau N0C 04 EN 250 250
Get 15% discount on our partner PlanetHoster with the code PHA-ceikay

Link URL set on slide doesn't redirect to SEF URL

More
12 years 9 months ago - 11 years 8 months ago #17512 by toutic
I have a slideshow on my home page with a link set for each slide.
When I click on a slide, a new tab open with the right article but without a proper a Sef URL.

I get this url :
Code:
http://aaa.org/fr/index.php?option=com_content&view=article&id=373&Itemid=267&lang=fr

... whereas the article SEF URL should be:
Code:
http://aaa.org/fr/un/article-title

First question : what should I do to get the SEF URL ?

Second question : This creates issues on the article opened from the slideshow, I have a second module (called with module anywhere in the html of article) that uses the page itemid of its one for its links.
And when I click on one link in my second module, I ended up on a page with all my home page module on it (my slideshow CK is on the home page)! Just like if the Itemid set in the link in module manager was not taken into account and that somehow something keeps the Itemid from the home page.

Thanks a lot for your help!


UPDATE :
I used a relative url in the Link url in the module manager:
Code:
index.php?option=com_content&view=article&id=373&Itemid=267&lang=fr

However the itemid issues (second question) is solved when I use an absolute url in the module manager link url. I then get this redirection from the slideshow:
Code:
http://aaa.org/fr/?option=com_content&view=article&id=373&Itemid=267&lang=fr
(notice the index.php after /fr/ disappeared)

But it still doesn't solve question one.
Last edit: 11 years 8 months ago by toutic.

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

More
12 years 9 months ago #17514 by ced1870
Hi
how do you set the link on the slide ?
have you used

index.php?option=com_content&view=article&id=373&Itemid=267&lang=fr

?

give me your url to check
CEd

Joomlack Webmaster and Developer

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

More
12 years 9 months ago - 11 years 8 months ago #17519 by toutic
Thanks a lot Ced for your help and for your quick reply!

ced1870 wrote: how do you set the link on the slide ? have you used

index.php?option=com_content&view=article&id=374&Itemid=268&lang=en

?


Yes at first but then I get the issues describe below for the first slide.
To somewhat solve the problem I set the link as absolute URL so (at least) I can get the correct itemid for my second module (see the description below of the second slide).



If you scroll down to the bottom, you will see a module on the left side called "Watch".

- for the first slide (the old man) I set a relative URL:
The slide link takes you to the correct article but you will see that the "current menu" is Home whereas in the link (in slideshow module manager) I set the itemid to 268 which is the menu understanding/ecology
Then if you select any of the link at the bottom of the page beneath "related articles", you will be redirected to the correct article but with the Home page itemid (see all the modules?).

- for the second slide (the cute monkey face) I set an absolute URL:
The slide link takes you to the correct article and the "current menu" is understanding/ecology (itemid 268) just like I set in slideshow module manager)
Then if you select any of the link at the bottom of the page beneath "related articles", you will be redirected to the correct article with the correct itemid 268.


If you look at the url of the pages opened by slide 1 and by slide 2 you will see the there aren't SEF url.

Thanks again for your help!
Last edit: 11 years 8 months ago by toutic.

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

More
12 years 9 months ago #17520 by ced1870
why don't you put the correct SEF url instead of the non-SEF ?
this has no sense. :)

Joomlack Webmaster and Developer

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

More
12 years 9 months ago #17524 by toutic
Good point ;) , and it maybe the simplest "short term" solution BUT I don't use SEF url because my category, article and menu alias changes quite often and I don't want to go through the hassle of changing all my urls each time!

I didn't get your "this has no sense": is it about tme not using non-SEF url or is it about my "mumbo jumbo" in my previous post about slide one and slide two?

Thanks a lot for your help Ced!

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

More
12 years 9 months ago #17527 by ced1870
the non sense is for the fact that you give a non SEF url on a SEF website :)
now, the problem is that there is no JRoute (for managing the url) used for the link written on the slide.
I have to check this ...
Please remind me in few days if I don't come back to you

Joomlack Webmaster and Developer
The following user(s) said Thank You: toutic

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

Time to create page: 0.195 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 1238 guests and 3 members online