Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Back button on task details is broken if page is reloaded #5

Open
stuswope opened this issue Sep 8, 2016 · 0 comments
Open

Back button on task details is broken if page is reloaded #5

stuswope opened this issue Sep 8, 2016 · 0 comments

Comments

@stuswope
Copy link

stuswope commented Sep 8, 2016

Navigate to the task detail page and then reload the page. The back button no longer goes back to the task list because the referrer is the same as the current path.

Modify to not set referrer if the path doesn't change or possibly hard code the link in the view to go back to the task list.

public/js/app.js

 // Store the current page for back navigation
 myTasks.run(function($rootScope, $location) {
     $rootScope.$on("$locationChangeStart", function(event, next, current) {
         $rootScope.referrer = current;
     });
 });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant