• Resolved Yworld

    (@yworld)


    Hello. Thanks for the great plugin.

    If you are coming from a social network or just have any parameter on the link (?12345 or ?fbclid=IwAR2vmxbvR):

    <link rel="canonical" href="https://example.com/asgaros/test-opoveshhenij.html" />
    <link rel="amphtml" href=https://example.com/asgaros/test-opoveshhenij.html/amp?12345">

    You can check this on any site if you add parameters to the link.
    Google indexes such links and writes to the panel, even if it is prohibited in robots.txt

    How can I get rid of parameters in a link in a tag amphtml?

    • This topic was modified 2 years, 9 months ago by Yworld.
    • This topic was modified 2 years, 9 months ago by Yworld.
Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Support Milind More

    (@milindmore22)

    Hello @yworld

    Thank you for support topic, social media reference parameters should not be indexed, as they are generated on those social media sites or when users clicks on links shared on social media

    The google bots will visits your site directly from sitemap your submitted so they should not have any refernce parameters like fbclid.

    It will be best to check if you canonical link has those parameters as your AMP version will only retain them.

    Also can you please send us example URL and steps to reproduce the issue so we can further investigate the issue.

    Hope this helps!

    Thread Starter Yworld

    (@yworld)

    Hello @milindmore22

    screenshot from console https://prnt.sc/S94zWe4XrpKn

    Link example (link from facebook):

    https://worldwebinfo.ru/life/astrology/ezhednevnye-goroskopy/goroskop-na-15-fevralya-2022-goda.html?fbclid=IwAR1bfUAMR5zt8BZvjVb4qTY5OaBMR7Zcai1r591qckaNCFgL786yR6r2J6o

    If you follow the link everything is visible in the page code, you can add parameters to any site, with any type of link, and they will amphtml. Google indexes them.

    The number of links with different parameters changes, sometimes more, sometimes less

    • This reply was modified 2 years, 9 months ago by Yworld.
    • This reply was modified 2 years, 9 months ago by Yworld.
    • This reply was modified 2 years, 9 months ago by Yworld.
    • This reply was modified 2 years, 9 months ago by Yworld.
    Plugin Support Milind More

    (@milindmore22)

    Hello @yworld

    I will check if we encountered any previous incidents similar to this, I will also recommend contacting your SEO plugin’s support since they are responsible for site’s SEO.

    You can always remove those URL’s from search console by visiting Removals menu.

    Thread Starter Yworld

    (@yworld)

    Hello @milindmore22
    A plugin (SEO or whatever) has nothing to do with it, even if everything is disabled. Parameters remain in the tag. rel=”amphtml”

    It is generated by your plugin and there seems to be no filtering by parameters, but I superficially looked at the plugin files.

    Easy to check. On any site, with any set of plugins. Add parameters to the link and look in the tag rel=”amphtml”.
    In rel=”canonical” the exact address without parameters.

    In any case, thanks for your attention to the issue. Strange, but Google indexes such page addresses.

    • This reply was modified 2 years, 9 months ago by Yworld.
    • This reply was modified 2 years, 9 months ago by Yworld.
    • This reply was modified 2 years, 9 months ago by Yworld.
    • This reply was modified 2 years, 9 months ago by Yworld.
    Plugin Support Milind More

    (@milindmore22)

    Hello @yworld

    AMP plugin retains the URL parameters that are already present on canonical URL (non-AMP) it doesn’t add them specifically for AMP page except ?amp

    So if you enter ?abc=123 in your URL or a link with parameter it will retain url in amphtml link tag as ?amp&abc=123

    Thread Starter Yworld

    (@yworld)

    Hello @milindmore22

    Sorry, I did not immediately understand, the plugin is not to blame. Google indexes the first link it comes across on a social network if another one isn’t already in the index. The rules in .htaccess solve the problem.

    RewriteCond %{QUERY_STRING} ^(.*)&?fbclid=[^&]+&?(.*)$ [NC]
    RewriteRule ^/?(.*)$ /$1?%1%2 [R=301,L]

    Thank you for your support and sorry for the bother.

    • This reply was modified 2 years, 9 months ago by Yworld.
    • This reply was modified 2 years, 9 months ago by Yworld.
    Plugin Support Milind More

    (@milindmore22)

    Good to know you found the solution thanks for sharing it, it will be helpful for someone who encounter similar issue, I’ll mark this as resolved Open a new support topic if you face further issues, also feel free to leave a plugin review, we would love to hear your feedback.

    I have an issue on my website, not similar but relevant, Since december i have started noticing that fbclid parameter is being appended on to the paginated urls in the blog. These are being indexed heavily by google. i can see them under ” indexed, not submitted in sitemap” block. How to solve it. Does the rewrite rules provided here solve the issue of this kind.

    https://prnt.sc/Xr21X58R2Va7
    https://prnt.sc/N6zSAfAW1W7c

    Thread Starter Yworld

    (@yworld)

    @jahnavimalyala
    With fbclid decides.

    I didn’t get you. Could you please elaborate.

    Thread Starter Yworld

    (@yworld)

    @jahnavimalyala

    How to solve it. Does the rewrite rules provided here solve the issue of this kind.

    Yes, they solve this problem

    Should the rules be added before # BEGIN WordPress section in htaccess or after # END WordPress. Are there any begin and end tags that should be included while using these rules

    Thread Starter Yworld

    (@yworld)

    @jahnavimalyala

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{QUERY_STRING} ^(.*)&?fbclid=[^&]+&?(.*)$ [NC]
    RewriteRule ^/?(.*)$ /$1?%1%2 [R=301,L]
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    • This reply was modified 2 years, 8 months ago by Yworld.

    Thanks for sharing the solution @yworld

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘GET parameters not removed from link’ is closed to new replies.