Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




Direct Project Links no longer work

web-app

After upgrading from 1.9.1 to 2.0.3 the direct project links (http://server/gemini/Default.aspx?ACME) no longer work.  They just direct you to "Main.aspx".  
Is there any way to fix this?

DaveS
· 1
DaveS
Replies (4)
helpful
0
not helpful

This is a BUG with 2.0.3. The alternative is to use main.aspx: ..../Main.aspx?ACME

 


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

Thanks for the tip.  Until a fix is available I added the following to the top of Defaulst.aspx which seems to do the trick.

<script runat="server" language="C#">
override protected void OnInit(EventArgs e)
{
    base.OnInit(e);
    try
    {
        string url = Request.RawUrl;
        int pos = url.IndexOf('?');
        if (pos > 0)
        {
            url = "http://server/gemini/Main.aspx" + url.Substring(pos);
            Response.Redirect(url);
        }  
    }
    catch (Exception ex)
    {
        //
    }
}


DaveS
· 1
DaveS
helpful
0
not helpful

Thanks for sharing this.


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

I think I was a little quick on that solution because it broke direct links to issues (http://server/gemini/Default.aspx?p=25&i=769)  I had to change it to the following. 

<script runat="server" language="C#">
override protected void OnInit(EventArgs e)
{
    base.OnInit(e);
    try
    {
        string url = Request.RawUrl;
        int pos = url.IndexOf('?');
        if (pos > 0 && url.IndexOf('=') < 0)
        {
            url = "http://server/gemini/Main.aspx" + url.Substring(pos);
            Response.Redirect(url);
        }  
    }
    catch (Exception ex)
    {
        //
    }
}
</script>

All I'll say is test it before putting it into production (I'm glad I did :)  If I have to make any further refinements, I'll post here.


DaveS
· 1
DaveS