Skip to content

When refreshing an assignment page, it redirects you back to the home page #29

Open
@davish

Description

@davish

This is the expected functionality when an assignment doesn't exist to the user: either it doesn't actually exist or they don't have access to it. (lines 5-20 in publishes.js determines what each user can see.)

The interesting thing is that this doesn't happen when you refresh a /edit subpage that only admins can access. The difference between the assignment route handler and the edit handler seems to be that the edit handler checks that the user is an admin first before trying to get the assignment.

I have a feeling this is a problem with publishes.js. This StackOverflow question seems to apply, but I might ask one that's more specific to our circumstance to get a more applicable answer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions