Skip to content

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

Open
@stuswope

Description

@stuswope

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;
     });
 });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions