Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sprachwechsel Links werden über productdetails statt Kategorie geleitet. #149

Closed
EyeCatcher92 opened this issue May 29, 2018 · 4 comments
Closed

Comments

@EyeCatcher92
Copy link

Hallo Zusammen,
der Sprachwechsler macht bei mir aktuell das Problem, dass er auf den Produktseiten über productdetails weiterleitet und nicht über den Kategorie Link.

So ist es aktuell: https://example.com/de/produkt-details/produktname.html
So soll es sein: https://example.com/de/kategoriename/produktname.html

Es sind sogar beide Varianten aufrufbar / erreichbar.
Die Frage nun wie kann ich hier den Sprachwechsler anweisen immer über die Kategorie zu gehen wenn eine vorhanden ist?

Das Problem breitet sich dann hier auch auf die alternative hreflang aus.

Forumseintrag: https://community.contao.org/de/showthread.php?70895-templates-block_alternate_links-html5-falsche-URL-im-Link

In verwendung:
Contao CMS 3.5.33
Isotope 2.5.1
changelanguage 3.1.9

@fritzmg
Copy link
Sponsor Contributor

fritzmg commented May 29, 2018

Ein Produkt kann ja in mehreren Kategorien vorhanden sein.

@EyeCatcher92
Copy link
Author

Stimmt. Aber ich müsste ja trotzdem (SEO) angeben, dass hier duplicate Content ist.
Somit bräuchte ich also die Links mit den Kategorien.

@fritzmg
Copy link
Sponsor Contributor

fritzmg commented May 29, 2018

Fügt nicht Isotope ohnehin schon einen canonical Tag ein?

@EyeCatcher92
Copy link
Author

Kann man das Problem nicht lösen in dem man hier genau jedem Produkt nur eine Kategorie zu ordnet.

Ja, aber dieser Zeigt nur auf die aktuell besuchte Seite. Müsste dieser nicht genau auf die anderen Seiten zeigen?

@aschempp aschempp closed this as completed Feb 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants