Hi all,
What is the best way to add a meta tag in reactive web applications?
I would like to add '<meta name="robots" content="noindex">' for some pages.
Thank you,
Hi Nexmettin,
You need Javascript to add it to the header of the page, as reactive web apps are SPAs. Not sure if google picks it up. Another alternative would be to create a robots.txt file in your root, using a traditional web app and the SEO Friendly URLs feature.
If your pages are not anonymous I don't think you need any of that, as they wont be crawled.
Cheers,Tiago Simões
For future reference, this scenario (and other SEO-related tags) can now be implemented using the SEO Utils with steroids component
https://www.outsystems.com/forge/component-overview/9576/seo-utils-with-steroids
It provides you the actions to implement it both on Reactive as well as Traditional Web.
Cheers,
João
Hi,
In your page onready event add a javascript like the bellow ->
Now you can add as much meta as you want. It will be added in your page header.
Thanks
Sourav
Tags added are coming in inspect mode but not in view page source, is there anything that we can do to achieve the same.