I have a field in the user account form where the user can enter their Twitter username, i.e. without the http://twitter.com/ part on the front. I want the user account page to render the username as a link i.e. http://twitter.com/username and I imagined I could do this with a "link" field by putting http://twitter.com/ into a relevant field and then adding the [user:field_twitterusername] token after it. But when I try to do this, on display the link becomes http://www.mysite.com/twitterusername instead. (It seems to be thinking that "twitterusername" is an internal URI.) Maybe I'm just misunderstanding the "link" field, in which case is there any other way to get this to work?

Comments

omarlopesino’s picture

Issue summary: View changes

That can be solved adding an option for use other base url. The user would only have to fill the field with an internal path, but the url will contain the base url that you indicates in the isettings of the field. I'll try to make the patch.

renatog’s picture

Status: Active » Reviewed & tested by the community

Really #1 make sense.

If we need we can union efforts for new features like that for turn more clear in D8.

renatog’s picture

Status: Reviewed & tested by the community » Fixed

Thank you for your help @mistermoper

Status: Fixed » Closed (fixed)

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