Unfortunately, this change is going to break the links on all the
pages except the main page. We need to find another way to do this.
:-(

Ethan

On Wed, Jan 26, 2011 at 10:22 AM,  <[email protected]> wrote:
> Author: rhirsch
> Date: Wed Jan 26 07:22:44 2011
> New Revision: 1063618
>
> URL: http://svn.apache.org/viewvc?rev=1063618&view=rev
> Log:
> [ESME-327] URL path problems
>
> Modified:
>    esme/trunk/server/src/main/webapp/scripts/display_messages_top.js
>
> Modified: esme/trunk/server/src/main/webapp/scripts/display_messages_top.js
> URL: 
> http://svn.apache.org/viewvc/esme/trunk/server/src/main/webapp/scripts/display_messages_top.js?rev=1063618&r1=1063617&r2=1063618&view=diff
> ==============================================================================
> --- esme/trunk/server/src/main/webapp/scripts/display_messages_top.js 
> (original)
> +++ esme/trunk/server/src/main/webapp/scripts/display_messages_top.js Wed Jan 
> 26 07:22:44 2011
> @@ -195,7 +195,13 @@ function displayMessages(msgArray, eleme
>
>
>       newMsg.find('#author').text(msgAuthor.nickname);
> -      newMsg.find('#author').attr('href', "/user/" + msgAuthor.nickname );
> +
> +      // Dealing with tomcat
> +      if (top.location.pathName == "/")
> +         newMsg.find('#author').attr('href',"/user/" + msgAuthor.nickname );
> +     else
> +        newMsg.find('#author').attr('href', window.location.pathname + 
> "user/" + msgAuthor.nickname );
> +
>
>
>            // Dealing with users with no avatars
>
>
>

Reply via email to