Since version 4.7.0 Drupal removes tag and placed to all links slash before (/node/1). This works, but it cause, that search engines like google doesn't indexing subpages (of course with CleanURL activated) like (/node/5).
It is possible to add option, to enable absolute urls to all drupal links? Because, when I changed function url to return only absolut url, google start to indexing subpages. Or it will be possible, back to base href tag and remove slash?
Another problem is, when I change function "url()", and function to returns base_href, it works only for links (in nodes), but not for images. And also it doesn't work for forms, it still have "/action" without domain.

Comments

killes@www.drop.org’s picture

Version: 4.7.3 » x.y.z

new features go into devel version.

greggles’s picture

Title: Bad behavior after remove base href, no search engines indexing subpages » return absolute URLs from l() and url() (and others?)
Version: x.y.z » 6.x-dev

Moving and providing a more descriptive title. I'm not sure if there are any drawbacks to having l() and url() provide full absolute URLs. It makes sense to me.

@kecinzer - do you have a patch of your modified version of those functions?

pasqualle’s picture

Version: 6.x-dev » 7.x-dev
xano’s picture

Status: Active » Postponed (maintainer needs more info)

Is this Google problem still an issue now in 2008?

lilou’s picture

-1 :

See : http://www.searchenginejournal.com/seo-internal-interlinking-relative-vs... :

There no absolute difference in term of seoing using an absolute or relative url.

sun.core’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

You can do that using a custom_url_rewrite() function.