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

Notification editor doesn't close when saving a draft #16267

Closed
maksim-markin opened this issue Jun 9, 2024 · 13 comments · Fixed by #16325
Closed

Notification editor doesn't close when saving a draft #16267

maksim-markin opened this issue Jun 9, 2024 · 13 comments · Fixed by #16325
Milestone

Comments

@maksim-markin
Copy link
Contributor

Describe the bug

There is an issue with updating content item: when there is a change content item with current culture changing the notification editor doesn't close.

Orchard Core version

1.8.2.

To Reproduce

Steps to reproduce the behavior:

  1. Go to Manage Content page
  2. Click Add New Global Notification
  3. Set some Html text and Content localization to English
  4. Еhere is a parameter "returnUrl" in the address bar
  5. Press Publish button
  6. On Manage Content page select published notification for editing
  7. Change Current culture to other language (in this step we are losing a parameter "returnUrl") and change Html text
  8. Press Publish button again

Expected behavior

The editor window should close and return to Manage Content page.

Logs and screenshots

Issue_close_window_1
Issue_close_window_2
Issue_close_window_3
Issue_close_window_4
Issue_close_window_5

Copy link
Contributor

github-actions bot commented Jun 9, 2024

Thank you for submitting your first issue, awesome! 🚀 We're thrilled to receive your input. If you haven't completed the template yet, please take a moment to do so. This ensures that we fully understand your feature request or bug report. A core team member will review your issue and get back to you.

If you like Orchard Core, please star our repo and join our community channels.

@hishamco
Copy link
Member

hishamco commented Jun 9, 2024

@MikeAlhayek is this by design?

@MikeAlhayek
Copy link
Member

I am not sure. I did not design the culture feature

@hishamco
Copy link
Member

hishamco commented Jun 9, 2024

I thought it was notification-related. I will have a look then

@maksim-markin
Copy link
Contributor Author

This behavior actual with every content type not for only notification

@hishamco
Copy link
Member

Please another screenshot

@hishamco hishamco self-assigned this Jun 11, 2024
@maksim-markin
Copy link
Contributor Author

  1. Open Manage Content (type = page)
    pic1

  2. Edit some page (there is a returnUrl param) and change current localization
    pic2

  3. Localized version has been created (there is no returnUrl param)
    pic3

  4. After published, page doesn`t close
    pic4

@sebastienros
Copy link
Member

@maksim-markin We understand that you created a type name "Global Notification" and this is not related to the notifications module (that was confusing so I prefer the state it).

My understanding of the issue is that the return url is lost when we switch languages, so publishing a new localized version won't go back to the content items page like when create a new content item does.

@sebastienros sebastienros added this to the 2.x milestone Jun 13, 2024
Copy link
Contributor

We triaged this issue and set the milestone according to the priority we think is appropriate (see the docs on how we triage and prioritize issues).

This indicates when the core team may start working on it. However, if you'd like to contribute, we'd warmly welcome you to do that anytime. See our guide on contributions here.

@sebastienros
Copy link
Member

I kind of agree with the expectation, that we should return to the previous returnUrl value if there was one.

@maksim-markin
Copy link
Contributor Author

@maksim-markin We understand that you created a type name "Global Notification" and this is not related to the notifications module (that was confusing so I prefer the state it).

My understanding of the issue is that the return url is lost when we switch languages, so publishing a new localized version won't go back to the content items page like when create a new content item does.

This behavior actual with every content type not for only notification
See screens above

@maksim-markin
Copy link
Contributor Author

Related Pull Request: #16325

@hishamco
Copy link
Member

I unassigned myself while you started a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants