Pages loading AMP have internal links going back to non-AMP

Is there a Joomla content plugin to correct this?
Responses (7)
  • Accepted Answer

    Wednesday, March 21 2018, 05:56 PM - #Permalink
    Hi

    There is no content plugin. You decide which link should be AMPlified or not by using a css class. This is described on this page of the configuration.

    If you need any further support, please only use the helpdesk.

    Best regards
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, October 21 2018, 08:30 AM - #Permalink
    Is wbamp-link class supposed to work on blog category menu item?

    https://dev.kravfighter.co.nz/images/wbamp/wbamp-link.jpg
    https://dev.kravfighter.co.nz/images/wbamp/blog-category-menu.jpg

    Because it doesn't on Joomla 3.8.3 with wbAMP version 1.12.1.797.

    All the articles listed on the AMP enabled blog page have the non-AMP urls, despite wbamp-link class being added in the menu item for the blog.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, October 22 2018, 07:33 AM - #Permalink
    Hi

    All the articles listed on the AMP enabled blog page have the non-AMP urls
    They would have AMP links on the AMP version of the blog page, not on the blog page itself.

    Best regards
    The reply is currently minimized Show
  • Accepted Answer

    Monday, October 22 2018, 08:27 AM - #Permalink
    Is this behaviour for both community edition and full, or just full please?

    If you look at this blog amp enabled page https://dev.kravfighter.co.nz/krav-fighter/blog.amp.html all the articles have non-amp urls, even though all the articles have been amp enabled and can be accessed.

    I also couldn't find any instance of the wbamp-link class anywhere in the code, but will try to look more thoroughly tomorrow.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, October 23 2018, 05:10 AM - #Permalink
    Ok, so after more troubleshooting, it seems this feature is available only in full version and only on the AMP Menu itself (community version has no menu), plus in the links inside articles if we use class="wbamp-link" . However, this doesn't solve the blog category view.

    Let's say you have AMP link to a blog menu item, and that one shows AMP page version when selected. However, the urls of the blog articles are all non-AMP urls.

    So is there a solution for this?
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, October 25 2018, 12:29 AM - #Permalink
    Ok, anyone needing help with this, the only way to do it (as developer didn't think about it at all) is to create the template override for blog_style_default_item_title.php and readmore.php for the wbamp template. Also, this will work only in FULL version, as there is no template in the community version.

    You need to add class="wbamp-link" in front of href= inside each of these php files. I am assuming you know how to configure template overrides here.

    Considering the developer has icons.php and info_block.php there already, I am surprised that did he did not test the plugin after the issue was reported back in March 2018.

    Relying on others to do your software testing, root-cause analysis and then fixing is not what I'd call a good software development practice.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, October 25 2018, 07:58 AM - #Permalink
    Hi

    The only thing I did not think about or rather understand immediately is that you were thinking that adding "wbamp-link" to the blog menu item would cause the links inside the blog page to become AMP.

    That's not what adding the wbamp-link class does. It causes the link itself to be AMPlified, not the content of the page.

    (as developer didn't think about it at all) is to create the template override for blog_style_default_item_title.php and readmore.php for the wbamp template.
    Did not think about what? what you describe seems like expected in Community version. And adding template overrides is the standard way to modify the output of wbAMP or most other Joomla extensions.

    as there is no template in the community version.
    Both versions work the same and use Joomla standard JLayouts for their output. You can template override any bit of wbAMP output to your liking, whether standard version or Community.

    I am surprised that did he did not test the plugin after the issue was reported back in March 2018.

    Relying on others to do your software testing, root-cause analysis and then fixing is not what I'd call a good software development practice.
    What issue? what report? what testing problem?

    You seem to be talking like you have found a bug or something, I'm not sure I follow you here.

    Best regards
    The reply is currently minimized Show
Your Reply