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

16990 export url token #17227

Merged
merged 12 commits into from Feb 23, 2021
Merged

16990 export url token #17227

merged 12 commits into from Feb 23, 2021

Conversation

flamisz
Copy link
Contributor

@flamisz flamisz commented Feb 17, 2021

Description:

fix for #16990

Review

  • Functional review done
  • Usability review done (is anything maybe unclear or think about anything that would cause people to reach out to support)
  • Security review done see checklist
  • Code review done
  • Tests were added if useful/possible
  • Reviewed for breaking changes
  • Developer changelog updated if needed
  • Documentation added if needed
  • Existing documentation updated if needed

@tsteur tsteur added the Needs Review PRs that need a code review label Feb 17, 2021
@tsteur tsteur added this to the 4.2.0 milestone Feb 17, 2021
@sgiehl sgiehl added the not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. label Feb 17, 2021
tests/UI/specs/ViewDataTable_spec.js Show resolved Hide resolved
plugins/CoreHome/lang/en.json Outdated Show resolved Hide resolved
plugins/CoreHome/lang/en.json Outdated Show resolved Hide resolved
Copy link
Member

@diosmosis diosmosis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

found one possible issue

@@ -61,7 +61,8 @@
</div>

<div class="col l12" ng-show="showUrl">
<textarea piwik-select-on-focus readonly class="exportFullUrl" title="{{ 'CoreHome_ExportTooltip'|translate }}">{{ getExportLink() }}</textarea>
<textarea piwik-select-on-focus readonly class="exportFullUrl">{{ getExportLinkWithoutToken() }}</textarea>
<div class="tooltip" ng-bind-html="'CoreHome_ExportTooltipWithLink'|translate:'<a target=_blank href=\'/index.php?module=UsersManager&action=userSecurity\'>':'</a>':'ENTER_YOUR_TOKEN_AUTH_HERE'"></div>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This URL starting w/ /index.php will break on subdirectory installs, correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, thanks. I'll check it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi @diosmosis I fixed this, using directory-relative URL instead of origin-relative.

tests/UI/specs/ViewDataTable_spec.js Outdated Show resolved Hide resolved
@mattab mattab modified the milestones: 4.2.0, 4.3.0 Feb 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants