Hello, I have the following problem: I have created a page “References” with “The Grid” for our multilingual website. Here our references are displayed as tiles. This also works wonderfully.Now when I click on a tile, the post (the single reference) opens in the same window. I now have a button at the bottom of the post (Back to the overview) with which I can go back to the References page. I do this with the following code (excerpt):
<div class="container">
<div class="row">
<div class="col-xs-12 back">
<a href="<?php echo $_SERVER['HTTP_REFERER'];?>">
<?php
if (ICL_LANGUAGE_CODE == 'de') {
echo "Zurück zur Übersicht ";
} elseif (ICL_LANGUAGE_CODE == 'en') {
echo "Back to the overview ";
} elseif (ICL_LANGUAGE_CODE == 'fr') {
echo "Retour à la vue d'ensemble ";
} elseif (ICL_LANGUAGE_CODE == 'es') {
echo "Volver a la vista general ";
} elseif (ICL_LANGUAGE_CODE == 'nl') {
echo "Terug naar het overzicht ";
}
?>
</a>
</div>
The problem is that I also refer to similar references in the post, when you click on them the whole thing doesn’t work anymore, because you only get to the previous page when you click on the button. Is there a way to always link to the “References” page with php, no matter from which post, or do I have to do the whole thing with static links?
Thank you in advance
Peter