bugnet
bugnet copied to clipboard
Save and Return takes me to wrong project
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
By design, it takes you to the last page you were on.
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.
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.
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.
I'm experiencing the same error @DasCody @dubeaud.
@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.
@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));
}