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

Problems with SEO Url to Detail View

9 jaren 8 maanden geleden - 9 jaren 8 maanden geleden #678 door Sebastian Weiß
Problems with SEO Url to Detail View werd gestart door 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!
Laatst bewerkt 9 jaren 8 maanden geleden door Sebastian Weiß.

Gelieve Inloggen of een account aanmaken om deel te nemen aan het gesprek.

Tijd voor maken pagina: 0.050 seconden
Gemaakt door 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.