Navigation Menu

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

simplify url structure #7558

Open
hpvd opened this issue Mar 27, 2015 · 1 comment
Open

simplify url structure #7558

hpvd opened this issue Mar 27, 2015 · 1 comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@hpvd
Copy link

hpvd commented Mar 27, 2015

When trying to generate urls to specific "points" within piwik automatically, we noticed urls contain same info several times.

Example:
url to visitor log of today for a special site looks like this:
http://piwik. ... /index.php?module=CoreHome&action=index&idSite=4&period=day&date=today#/module=Live&action=indexVisitorLog&idSite=4&period=day&date=today

when you structure it a little

http://piwik. ...
/
index.php?
module=CoreHome
&action=index
&idSite=4
&period=day
&date=today

/

module=Live
&action=indexVisitorLog
&idSite=4
&period=day
&date=today

you see it contains the following values twice:

  • site id
  • type of period
  • value of period (date)
  • action type (slighty different)

If you do things like segmentation even more values are doubled..

Can't/shouldn't this be simplified?

@mattab
Copy link
Member

mattab commented Apr 8, 2015

Hi @hpvd
It would be nice to have simpler URLs... Currently this works like this by design of how the javascript works. It's useful to have both for example when a Popover is loaded it loads both the report in the background and then the popover (2 different reports). It may be simplified when we will use more AngularJS features eg. their request router in Piwik.

@mattab mattab added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Apr 8, 2015
@mattab mattab added this to the Long term milestone Apr 8, 2015
@mattab mattab modified the milestones: Long term, Mid term Dec 23, 2015
@mattab mattab modified the milestones: Long term, Mid term Dec 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

2 participants