Alert says using deprecated HREF without absolute URL - url

Message alert in Facebook developer page that my site is currently using the following deprecated features:
Social Plugins (Like Button, Like Box) without absolute URL's in their href parameter. This must be fixed before July 2013.
I'm guessing it's talking about the data-href parameter for likes, but my like buttons are being generated with the following simple code:
data-href="http://<?php echo $_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];?>"
And the results when viewed in the browser (looking at the HTML source) certainly look like absolute URLs to me. What is this alert actually trying to tell me? That they've scanned the site and that there are actual HREFs that have problems, or just that there might be some?
Is it referring to some other HREF parameter?

If you use absolute url in data-href attribute of this social plugin, just enable July 2013 Breaking Changes in settings of your facebook application.

In Like Button code, data-href is href for HTML5.

Absolute URL:
http://stackoverflow.com/questions/16270043/alert-says-using-deprecated-href-without-absolute-url
Relative URL
../questions/16270043/alert-says-using-deprecated-href-without-absolute-url
Social Plugins must have absolute URL your site and looks like your site has.

Related

Umbraco URL issue with Vorto

I am using vorto plugin in my Umbraco 7 application to achieve the multilingual capability.
I mentioned the URL in hostname as 'localhost/clientname/en'.
Whenever I open login page the URL which is getting form is 'http://localhost/clientname/en/login'.
This is the structure of vorto URL writing.
But can I achieve it like 'http://localhost/clientname/login/en' ???
I want language names at the end of the URL, not in between.
Is it possible ?
Please help....i am badly stuck in my project task !
It sounds like you need a custom URL provider, setting the domain to 'localhost/clientname/en' will mean that the URLs will always get added AFTER the language part as the host is always the first part of the URL.
Have a look at this article on URL providers and content finders: https://24days.in/umbraco-cms/2014/urlprovider-and-contentfinder/ it's quite old, but it should still work. That should give you an idea of how to make it work. Basically you want the URL provider to append the language to the end of the URL, and the content finder to strip the language from the end and then find the actual content. You can also then set the language of the current thread in the content finder so that Vorto and Umbraco are using the correct language based on the URL.

Creating a chrome:// page for my Firefox add-on

I am building a simple Firefox add-on using the Add-on SDK, and I need it to display some information when first ran.
I don't want to rely on an external URL for this, so I figured that my best option is to use the chrome:// scheme.
I have two questions
How to create said page?
Is it possible to pass a value to it (something along the lines of welcome.html?key=abc)?
You need to register a content or resource url scheme in chrome.manifest. You will be able to use window.location object there as usual.

Breaking Change about absolute URL in Social Plugin

I got this alert from facebook:
... is currently using the following deprecated features:
Social Plugins (Like Button, Like Box) without absolute URL's in their href parameter.
The fb like and fb comment box is used on a Sharepoint site, and the URL in the href parameter is absolute.
Anyone have ideas why facebook is complaining about the code? or have a safe approach I can use to test if the code will work after the change without downtime on the plugins.
Just as #Anvesh says, I checked that my URLs was absolute, enabled the migration, waited a few minutes and tested and nothing breaked.
They should rephrase the message.

duplicate url+content generation problem

In my current site I have a link in the header section for skype, Gtalk, MSN chat, by clicking on the link the chat application get launched.
The problem is that, the link uses a href tag. and by doing this the SEO process is facing problem as there is some duplicate url have been created. In SEO process if different URLs have the same content the process not works.
Any suggestion from coming out from this problem.
One simple way to remedy this is add this adding a element with the attribute rel="canonical" to the section of the non-canonical version of the page.
More information please go to http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=139394
make them js url (with the js function in an external script)

Something wrong with redirects on my Joomla 1.5.18 site

My Joomla 1.5.18 site, I enabled login, when I click login the page I get sent to is NOT styled with CSS. If I login it redirects to the home page and it is not styled anymore either.
It looks like it is recursively appending stuff to the URL incorrectly.
http://www.myjoomlasite.org/index.php/index.php/login
if I click on home page or login links it keeps putting more and more index.php entries in the URL, and sometimes on the end. The following is what I get when I try and go to a JEvents menu item.
http://www.myjoomlasite.org/index.php/index.php/index.php/index.php/upcomingevents/month.calendar/2010/06/09/index.php
Anyone have any idea why this is happening? I don't know what to search for on Google apparently, and none of the Joomla! books I have address this.
I figured it out I had turned on Search Engine Friendly URLs in SEO Settings under Global Configuration. Turning this back off fixed the problem. Now I guess another question will be along the lines on how to get the Search Engine Friendly URL's to work again.
Make sure you link to stylesheets and images using a link that starts with a leading slash and therefore counts from the root.
It is the browser that evaluates the URL for those resources, based on the URL of the currently viewed HTML page. Never use relative links for these resources.

Resources