#8330 Nicer user-project urls (for underscores) and titles

v1.12.0
closed
None
General
nobody
2019-10-04
2019-08-29
No

If a username has an underscore in it, we do some changes to make it a valid user-project shortname, by substituting _ to -. However it would be nice to support the web url to still have a underscore matching the username like /u/foo_bar/

And,we show "u/username" as the <h1> for user-project pages and the user's full name in <title>. I think it'd be better to show the full name in the <h1>

Additionally the "u/username" comes from the project's "name" field which in the past we allowed to be edited but no longer for user-projects. So it'd be good to avoid using that for user projects.

Discussion

  • Dave Brondsema

    Dave Brondsema - 2019-08-29
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,5 +1,5 @@
     If a username has an underscore in it, we do some changes to make it a valid user-project shortname, by substituting `_` to `-`.  However it would be nice to support the web url to still have a underscore matching the username like `/u/foo_bar/`
    
    -And,we show &#34;u/username&#34; as the &lt;h1&gt; for user-project pages and the user&#39;s full name in &lt;title&gt;. I think it&#39;d be better to show the full name in the &lt;h1&gt;
    +And,we show &#34;u/username&#34; as the `&lt;h1&gt;` for user-project pages and the user&#39;s full name in &lt;title&gt;. I think it&#39;d be better to show the full name in the `&lt;h1&gt;`
    
     Additionally the &#34;u/username&#34; comes from the project&#39;s &#34;name&#34; field which in the past we allowed to be edited but no longer for user-projects. So it&#39;d be good to avoid using that for user projects.
    
     
  • Dave Brondsema

    Dave Brondsema - 2019-08-29
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,5 +1,5 @@
     If a username has an underscore in it, we do some changes to make it a valid user-project shortname, by substituting `_` to `-`.  However it would be nice to support the web url to still have a underscore matching the username like `/u/foo_bar/`
    
    -And,we show &#34;u/username&#34; as the `&lt;h1&gt;` for user-project pages and the user&#39;s full name in &lt;title&gt;. I think it&#39;d be better to show the full name in the `&lt;h1&gt;`
    +And,we show &#34;u/username&#34; as the `&lt;h1&gt;` for user-project pages and the user&#39;s full name in `&lt;title&gt;`. I think it&#39;d be better to show the full name in the `&lt;h1&gt;`
    
     Additionally the &#34;u/username&#34; comes from the project&#39;s &#34;name&#34; field which in the past we allowed to be edited but no longer for user-projects. So it&#39;d be good to avoid using that for user projects.
    
     
  • Dave Brondsema

    Dave Brondsema - 2019-08-30
    • status: in-progress --> review
     
  • Dave Brondsema

    Dave Brondsema - 2019-08-30

    allura,forgehg:db/8330

     
  • Kenton Taylor

    Kenton Taylor - 2019-09-03
    • status: review --> closed
     
  • Dave Brondsema

    Dave Brondsema - 2019-10-04
    • Milestone: unreleased --> v1.12.0
     

Log in to post a comment.