146
Views
3
Comments
Meta Tag in Reactive Web Application
Question

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,

Staff
Rank: #20

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 


Rank: #94

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

Rank: #370

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