× Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues

Problems with SEO Url to Detail View

9 anos 9 meses atrás - 9 anos 9 meses atrás #678 por Sebastian Weiß
Problems with SEO Url to Detail View foi criado por Sebastian Weiß
Hi,

I´m working on a component for Sport-Teams with an View of a whole Team and url to single players.
Therefore I created a view tables like:

Components name: com_sports

#__sports_saison
#__sports_teams
#__sports_ligen (=leagues)

and another table to build one team in each saison and league
#__sports_team_saison_liga (assignment between saison, team and league)

the next table is for play master data
#__sports_playerdatails (Master data of the Persons)

and an other table to assign players to a "saison-team" which is the Team per Saison
#__sports_spieler (= Player in Saison)

Now i added my own SQL to the view "sports_spieler" to display data from different tableslike team-Infos and other information and the most important thing to display all the assigend palyers for that specific team.

All this is not to complicated and work very fine.

But here is the issue:
I place a link on my view like this:
<?php
echo J::Route_("index.php?option=com_sports&view=spieler&id=".$playerid); 
?>
In SEO the result ist a genetrated URL like "Sitename.de/Menu-Alias/View/id" but, whenever i click on this, the site contains the data of the first entry in this tabel (with ID #1).

When I try to enter the URL direktly into the browser like "sitename.de/component/sports/spieler/1" its working fine.
What can I do? I placed the same code into my coding like the generated by CC.

THank you for your help!
Ultima edição: 9 anos 9 meses atrás por Sebastian Weiß.

Por favor Acessar ou Registrar para participar da conversa.

Tempo para a criação da página:0.046 segundos
Powered by Fórum Kunena

We use cookies so that you can place orders and we can provide a better service. You can control the use of cookies at the individual browser level. If you reject cookies, you may still use our website, but your ability to use some features or areas of our website may be limited.