mirror of
https://github.com/discourse/discourse.git
synced 2025-03-10 16:35:36 +08:00

When installing themes using the "Install this theme component" button on meta.discourse.org, we pass the repo name and URL via query params. However, these stick. So if a user cancels the installation, on the next navigation to the same route, they'll see the modal again. This PR clears the query params of the controller when dismissing the modal.