!url-alias is not showing path auto alias when creating a node, it shows url.tld/node/123. It only works fine when auto url has been generated previously. ex: saving 2 times the content and posting it to twitter only at second time.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Zen’s picture

Version: 7.x-3.0-beta4 » 7.x-3.0

The same applies to !tinyurl as well. It does not use the alias.

-K
P.S. FWIW, an interim solution = http://drupal.org/project/globalredirect

Jorge Navarro’s picture

Version: 7.x-3.0 » 7.x-3.1
Priority: Normal » Major

Tested on latest version, not fixed yet.

Jorge Navarro’s picture

Version: 7.x-3.1 » 7.x-3.2

Tested on latest version, not fixed yet.

Leeteq’s picture

Version: 7.x-3.2 » 7.x-3.x-dev
xurizaemon’s picture

Status: Active » Needs review
FileSize
672 bytes

This is due to the default module weights (pathauto=1, twitter_post=0). If you amend twitter_post to have a higher weight than pathauto (and clear your cache) then you should see the URL get set before the tweet is posted.

We can set the module weight of Twitter Post to 10, which is higher than the default for Pathauto.

Note that both this patch and the one for #1816308: Consider removing twitter_shorten_url() ? refer to a new file, twitter_post.install. This patch depends on the one from that issue.

xurizaemon’s picture

Status: Needs review » Fixed

Committed in 72710a3.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.