That works and I have done that but it still doesn't address that setting 
description to None prints out the string "None".  That behavior doesn't 
seem correct to me.  Also the welcome app default setting is not google 
friendly.

On Friday, March 7, 2014 2:16:35 PM UTC-5, Anthony wrote:
>
> Just remove the response.meta.description line from menu.py.
>
> Anthony
>
> On Friday, March 7, 2014 1:02:10 PM UTC-5, User wrote:
>>
>> Sometimes I want to completely remove the meta description tag (as this 
>> is one of the recommended options according to Google: 
>> http://www.youtube.com/watch?v=W4gr88oHb-k)
>>
>> For example I have a default meta description tag defined in menu.py (as 
>> is in the welcome app).  Then in a specific controller function I'd like to 
>> remove that meta description tag so I try:
>>
>> response.meta.description = None
>>
>> However instead of completely removing the meta tag from the rendered 
>> html this produces:
>>
>> <meta name="description" content="None" />
>>
>> which seems kind of pointless.  So three things:
>>
>> 1. What is a workaround to remove the meta description tag from a 
>> controller?
>>
>> 2. What about changing web2py so when response.meta.description = None, 
>> there is no meta tag output?
>>
>> 3. What about completely removing the response.meta.description from the 
>> welcome app, since according to Google, duplicate meta description tags are 
>> a bad thing and having no tag is better than having a duplicate tag?
>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to