Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
!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.
Comment | File | Size | Author |
---|---|---|---|
#5 | twitter_post-1457940-set_module_weight_to_10.patch | 672 bytes | xurizaemon |
Comments
Comment #1
Zen CreditAttribution: Zen commentedThe same applies to !tinyurl as well. It does not use the alias.
-K
P.S. FWIW, an interim solution = http://drupal.org/project/globalredirect
Comment #2
Jorge Navarro CreditAttribution: Jorge Navarro commentedTested on latest version, not fixed yet.
Comment #3
Jorge Navarro CreditAttribution: Jorge Navarro commentedTested on latest version, not fixed yet.
Comment #4
Leeteq CreditAttribution: Leeteq commentedComment #5
xurizaemonThis 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.
Comment #6
xurizaemonCommitted in 72710a3.