+ Reply to Thread
Results 1 to 5 of 5

Thread: Bad hreflang retorn for News page

  1. #1

    Unhappy Bad hreflang retorn for News page

    Hi,
    We have a wrongly configured return link in all versions of Flynax in the News category.
    An example:
    A News page created in https://xxx.com/news/test.hmtl
    gives return link changing the language of the page to https://xxx.com/news.html,
    instead of redirecting to https://classifieds.demoflynax.com/es/news/test.html.
    I have looked at the source codes and cannot find how to modify it, therefore I have deactivated the news so as not to have so many errors for SEO optimization.
    Thanks.

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    2,102
    Hello,

    What script version do you use?

    it works properly in the latest versions

  3. #3
    Hello,
    I use last 4.8.1 and this bug is present in your last demo flynax.
    The problem is when you already have one more news created on the news page, for example news1.html, you change the language from the top of the page and instead of changing the language of the news, it sends you to the general category of news.html, not to /es/noticias1.html
    Thanks

  4. #4
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    2,102
    I've created a task regarding this flaw

    now you can apply the following solution:

    go to includes > classes > rlCommon.class.php > hreflangTags

    replace the line below:
    PHP Code:
    Only registered members can view the code
    with:
    PHP Code:
    Only registered members can view the code

  5. #5
    I've changed the codes and now the languages are fine. There was a single page that ended in /news/co2-2025.html and it didn't want to work, it went back to the beginning. Proving all that worked was to change the termination of the page in /news/contaminacion2025.html I don't know why this happened.
    Thanks for the help.

+ Reply to Thread