-
Notifications
You must be signed in to change notification settings - Fork 180
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
Problems with page refresh on a new collection page #2450
Comments
My suggestion was basically to not generate a UUID for a new Channel or Collection just for opening this modal. Is there a reason why we generate these IDs in advance? Or is it okay to not generate (or generate, but not put it in the URL right away) these IDs? |
This makes sense to me.
Sounds good to me. As long as we don't save the new, empty, object I can imagine using |
The current behaviour of generating the UUID and using that in the URL was implemented prior to the deferred saving of new channels, so no problem in changing that. It will be easiest to still let the UUID be generated, but just use the |
In Chrome, the problem seems to be that when you refresh at a URL like Which is a new, but unsaved collection, then you get an ill-formed This results in two invalid calls:
both returning a 404 => Error page, since it's treating the route component However, if you refresh the link on a valid collection ID, you get the right I think if this behavior was fixed, it would resolve the original issue. But it also needs to be fixed just to implement a simplified client-side route like |
@bjester , I would like to work on this issue also; please assign me this issue. |
Summary
When I reload a new collection page then:
1. In Chrome, I can see "Page not found" but there is an error in a console:
2. In Firefox, I can't see "Page not found":
Firefox behavior is problematic on different pages in this regard - see #2389.
A general solution might be needed - see @jonboiser's comment.
Category
BUG
Usage Details
How to reproduce
Real-life consequences
Confusion
The text was updated successfully, but these errors were encountered: