1075
Views
4
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,

2011-08-23 22-04-05
Tiago Simões
Staff

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 


2018-10-29 08-31-03
João Marques
 
MVP

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

2018-12-01 17-54-01
Sourav Pasari

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

2021-06-26 17-42-52
Jeevan Sai Sabbavarapu

Hi,

Tags added are coming in inspect mode but not in view page source, is there anything that we can do to achieve the same.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.