Added warning message about redirect handling on Inject URL page

This commit is contained in:
Brian Rasmusson
2016-03-04 15:58:19 +01:00
parent 215633c1cb
commit dd2aeb0530

@ -1044,6 +1044,15 @@ bool Parms::printParmTable ( SafeBuf *sb , TcpSocket *s , HttpRequest *r ) {
"Add url is temporarily disabled in Master Controls."
"</font></td></tr>\n";
if( page == PAGE_INJECT )
{
e1 = "<tr><td colspan=20><font color=#000000>"
"<b>WARNING</b>: Adding URLs this way DOES NOT handle redirects.<br><br>"
"If you add somesite.com and it redirects to www.somesite.com, it will be indexed as somesite.com, NOT www.somesite.com!<br>"
"Use Admin -> Advanced -> Add Urls instead if you want redirects handled correctly."
"</font></td></tr>\n";
}
if ( format == FORMAT_XML || format == FORMAT_JSON ) {
const char *coll = g_collectiondb.getDefaultColl(r);
CollectionRec *cr = g_collectiondb.getRec(coll);//2(r,true);