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

Conflict using anchor links (#) with Cross domain linking activated (Piwik 3.0.4) #11865

Open
mpocceschi opened this issue Jul 13, 2017 · 3 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.

Comments

@mpocceschi
Copy link

Hi everyone,
I found that if I use an anchor link (#) on a site (monitored by Piwik with Cross Domain Linking enabled), this is "caught" by Piwik's string and so the direct link to the anchor does not work anymore.
You can see what happens to this public link.
At the end of the page you will find an anchor link and you will see what happens.
If I manually modify the link generated by Piwik (cut and paste) by moving the anchor BEFORE the "?" symbol of the string, the link returns to work properly.
I hope to have been useful and to have explained to you correctly.
Thank you

@mattab
Copy link
Member

mattab commented Jul 24, 2017

Thanks for the report.

At the end of the page you will find an anchor link and you will see what happens.

Would you please explain here what happens and the wrong URL that was created?

@mpocceschi
Copy link
Author

Ok, i'll try to explain it better:
at the end of this page (click on the word "page" to reach it) you will find another link, this:
http://www.istruzione.it/pon/avviso_licei_musicali_sportivi.html#sec_gra
If you now click this link (you need to click it from that "mother" page otherwise you cannot see the problem), you will see that it trasforms itself (thank to the Cross Domain Linking of Piwik enabled) in this:
http://www.istruzione.it/pon/avviso_licei_musicali_sportivi.html?pk_vid=83212036884138d11500899477262601#sec_gra?&
putting the anchor inside of the piwik string instead of let it outside.
In this way the anchor i need doesn't work, but if i rewrite the link in the right manner (putting the anchor outside of the piwik string):
http://www.istruzione.it/pon/avviso_licei_musicali_sportivi.html?pk_vid=83212036884138d11500899477262601?&#sec_gra
it works perfectly.
Forgive my english, i hope i've been clear this time.
Thank you

@mattab mattab added the Bug For errors / faults / flaws / inconsistencies etc. label Sep 18, 2017
@mattab
Copy link
Member

mattab commented Sep 18, 2017

Thanks for the detailed report, we'll investigate this

@mattab mattab added this to the 3.2.0 milestone Sep 18, 2017
@mattab mattab removed this from the 3.3.0 milestone Oct 6, 2017
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