bugnet icon indicating copy to clipboard operation
bugnet copied to clipboard

Save and Return takes me to wrong project

Open CodyEngel opened this issue 9 years ago • 7 comments

After I create a new bug in any project and click Save and Return, I’m taken to another project when the screen refreshes.

Ex: New bug in Project A sends me to Project B New bug in Project C sends me to Project B upon click of Save and Return

CodyEngel avatar May 29 '15 17:05 CodyEngel

By design, it takes you to the last page you were on.

dubeaud avatar May 29 '15 17:05 dubeaud

In either scenario I wasn't on Project B though so I'm a little confused why it's taking me to the wrong project.

CodyEngel avatar May 29 '15 21:05 CodyEngel

It should return to you the last page you were on or the currents project summary page. On May 29, 2015 5:04 PM, "Cody Engel" [email protected] wrote:

In either scenario I wasn't on Project B though so I'm a little confused why it's taking me to the wrong project.

— Reply to this email directly or view it on GitHub https://github.com/dubeaud/bugnet/issues/129#issuecomment-106936063.

dubeaud avatar May 29 '15 21:05 dubeaud

It doesn't seem to be doing that though. I need to be on Project A to open a new issue for Project A so why it's returning me to Project B seems like a bug to me.

CodyEngel avatar Jun 01 '15 16:06 CodyEngel

I'm experiencing the same error @DasCody @dubeaud.

larshg avatar Oct 22 '15 07:10 larshg

@larshg my solution was to find a new job at a company that doesn't use BugNet. Unfortunately it doesn't seem like the developers are in much of a hurry to fix this.

CodyEngel avatar Nov 06 '15 01:11 CodyEngel

@DasCody thanks for that, it gave me a good laugh! Maybe you can provide some steps to reproduce. This function is based off of the referrerurl and session properties and doesn't always work.

Here is the code in the base page.

public void ReturnToPreviousPage()
        {
            if (Session["ReferrerUrl"] != null)
                Response.Redirect((string)Session["ReferrerUrl"]);
            else
                Response.Redirect(string.Format("~/Issues/IssueList.aspx?pid={0}", ProjectId));
        }

dubeaud avatar Nov 11 '15 17:11 dubeaud