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

unexpected website was found after deleting website #15710

Open
Findus23 opened this issue Mar 19, 2020 · 2 comments
Open

unexpected website was found after deleting website #15710

Findus23 opened this issue Mar 19, 2020 · 2 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.

Comments

@Findus23
Copy link
Member

  1. view a report for a siteid
  2. go to website management
  3. delete this website (e.g. 26)
  4. notice that the URL is still https://matomo.example/index.php?module=SitesManager&action=index&idSite=26&period=month&date=today&showaddsite=false
  5. Go to an admin page that depends on the siteid like e.g. Tracking Code
  6. An unexpected website was found in the request: website id was set to '26' . (as the siteID in the URL is still 26 which doesn't exist anymore
@Findus23 Findus23 added the Bug For errors / faults / flaws / inconsistencies etc. label Mar 19, 2020
@sgiehl
Copy link
Member

sgiehl commented Mar 19, 2020

@Findus23 was 26 your lowest page id?

@sgiehl
Copy link
Member

sgiehl commented Mar 19, 2020

ah no. Seems that's an edge case. That seems to happen when you remove the only site that is currently displayed in the sitesmanager list (e.g. last page in pagination). If there is another page displayed, it will be switched to that page.
See https://github.com/matomo-org/matomo/blob/4.x-dev/plugins/SitesManager/angularjs/sites-manager/sites-manager-site.controller.js#L192-L208

@tsteur tsteur added this to the Backlog (Help wanted) milestone Mar 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

3 participants