# Show full website path on user profile regardless of domain

**URL:** https://meta.discourse.org/t/show-full-website-path-on-user-profile-regardless-of-domain/42285
**Category:** UX
**Created:** [09.Апрель.2016 11:51:10 UTC](https://meta.discourse.org/t/show-full-website-path-on-user-profile-regardless-of-domain/42285 "2016-04-09T11:51:10Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [09.Апрель.2016 11:51:10 UTC](https://meta.discourse.org/t/show-full-website-path-on-user-profile-regardless-of-domain/42285/1 "2016-04-09T11:51:10Z")

</div>

I haven’t bothered maintaining a personal website for a while. The closest thing to my ‘website’ is twitter:

 ![](https://global.discourse-cdn.com/meta/original/3X/b/d/bdf971f5c864f1424d431291dc26c3b41ceb18de.png)

But if I put `twitter.com/mcwumbly` in my profile, it just shows up as `twitter.com`:

 ![](https://global.discourse-cdn.com/meta/original/3X/8/e/8e0f93750fb8f48c932e69a02c7509963e98088f.png)

Why not show the full path?

 ![](https://global.discourse-cdn.com/meta/original/3X/e/1/e1c2d6ca994d74b7dc07a1bed324423d7191d5dc.png)

(If I _did_ have a personal website, I probably wouldn’t have a deep path anyway)

 ![](https://global.discourse-cdn.com/meta/original/3X/2/3/232d89b7eb76ec5a08e13881ed7b152332a0bf4a.png)

---

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [09.Апрель.2016 11:57:11 UTC](https://meta.discourse.org/t/show-full-website-path-on-user-profile-regardless-of-domain/42285/2 "2016-04-09T11:57:11Z")

</div>

[https://github.com/discourse/discourse/pull/4158](https://github.com/discourse/discourse/pull/4158)

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [09.Апрель.2016 20:17:05 UTC](https://meta.discourse.org/t/show-full-website-path-on-user-profile-regardless-of-domain/42285/3 "2016-04-09T20:17:05Z")

</div>

I think if that change is made “Web Site” should be changed to read “URL”

And I’m not sure it’s a good idea to allow full paths.

For example allowing  
`..... /page?referral_id=1234`  
would be extremely inviting for those that think spreading their links in as many places as possible is good SEO practice.

Personally, I’d prefer that setting not be available for TL0 members, but that’s another topic

---

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [09.Апрель.2016 20:29:39 UTC](https://meta.discourse.org/t/show-full-website-path-on-user-profile-regardless-of-domain/42285/4 "2016-04-09T20:29:39Z")

</div>

TL0 users’ links don’t actually get hyperlinked.

I’m not sure how query parameters would be displayed with this PR as-is. (There isn’t a test covering that).

We could make sure it trims those from being displayed. How would that make you feel?

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [09.Апрель.2016 20:43:34 UTC](https://meta.discourse.org/t/show-full-website-path-on-user-profile-regardless-of-domain/42285/5 "2016-04-09T20:43:34Z")

</div>

> [@mcwumbly](#):
>
> TL0 users’ links don’t actually get hyperlinked.

That hasn’t stopped one-visit members from dropping links there.

> [@mcwumbly](#):
>
> We could make sure it trims those from being displayed.

One problem might be that some GETs are perfectly innocent eg. `....page?post=25`

As soon as Web Site becomes URL a can of worms is opened requiring complex code to keep it from being abused.

I’d be more in favor of a whitelist approach vs. blacklisting. eg. allow URLs like  
`site.com/membername`  
as that is a common format. eg.  
`twitter.com/mcwumbly`  
`github.com/cpradio`

I can see no problem with that

---

<div class="post-metadata">

### Author: ![steko](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@steko](https://meta.discourse.org/u/steko)
#### Post date: [09.Апрель.2016 21:04:07 UTC](https://meta.discourse.org/t/show-full-website-path-on-user-profile-regardless-of-domain/42285/6 "2016-04-09T21:04:07Z")

</div>

> [@Mittineague](#):
>
> I’d be more in favor of a whitelist approach vs. blacklisting. eg. allow URLs like [site.com/membername](http://site.com/membername) as that is a common format. eg. [twitter.com/mcwumblygithub.com/cpradio](http://twitter.com/mcwumblygithub.com/cpradio)

`gitlab.com/u/steko` 😉

---

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [09.Апрель.2016 21:21:59 UTC](https://meta.discourse.org/t/show-full-website-path-on-user-profile-regardless-of-domain/42285/7 "2016-04-09T21:21:59Z")

</div>

> [@Mittineague](#):
>
> As soon as Web Site becomes URL a can of worms is opened requiring complex code to keep it from being abused.

It already links to the site for basic members. Doesn’t showing the link make it _more_ transparent? Wouldn’t that make it _easier_ to police than it is now?

Whitelist/blacklist logic seems like it’s overkill to me until we find there is actually a problem here…

Plus, I can already put whatever I want in my “about” section…

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [09.Апрель.2016 21:33:27 UTC](https://meta.discourse.org/t/show-full-website-path-on-user-profile-regardless-of-domain/42285/8 "2016-04-09T21:33:27Z")

</div>

> [@mcwumbly](#):
>
> Plus, I can already put whatever I want in my “about” section…

Offtopic: Your twitter link in your about section doesn’t work. 😉

---

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [09.Апрель.2016 21:38:17 UTC](https://meta.discourse.org/t/show-full-website-path-on-user-profile-regardless-of-domain/42285/9 "2016-04-09T21:38:17Z")

</div>

Oops… Broke it when experimenting… Should be working again. Thanks for letting me know 🙂

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [10.Апрель.2016 23:50:13 UTC](https://meta.discourse.org/t/show-full-website-path-on-user-profile-regardless-of-domain/42285/10 "2016-04-10T23:50:13Z")

</div>

I think should a full path is fine adding referral stuff is rather rare … also we can simply truncate the UI after the `?`

So: `https://mysite.com/awesome?t=banana` shows up as `mysite.com/awesome`

No need for fancy whitelisting or blacklisting here.

---

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [11.Апрель.2016 00:18:52 UTC](https://meta.discourse.org/t/show-full-website-path-on-user-profile-regardless-of-domain/42285/11 "2016-04-11T00:18:52Z")

</div>

Happy to update the PR to truncate at `?` everything after that.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [11.Апрель.2016 00:19:56 UTC](https://meta.discourse.org/t/show-full-website-path-on-user-profile-regardless-of-domain/42285/12 "2016-04-11T00:19:56Z")

</div>

Sure, go for it ❤

---

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [11.Апрель.2016 01:10:29 UTC](https://meta.discourse.org/t/show-full-website-path-on-user-profile-regardless-of-domain/42285/13 "2016-04-11T01:10:29Z")

</div>

PR updated… turns out truncation of query params was already happening, so I just updated the tests to make that more explicit.
