Commit Graph

12 Commits

Author SHA1 Message Date
e95e2a6d94 Update redirects to replace the url rather than navigate to a new one
Current links from outside (like the wiki) will cause excess history
entries when clicking the https://help.libreoffice.org/ link,
breaking the back button.

See the example of the visited pages below. Ideally only the referring
page and the final page should be in the history, allowing the user to
navigate back.

1. https://help.libreoffice.org/Main_Page
2. https://help.libreoffice.org/ - 302 redirect
3. https://help.libreoffice.org/help.html - window.location.href
4. https://help.libreoffice.org/latest/index.html - window.location.href
5. https://help.libreoffice.org/latest/en-US/text/shared/05/new_help.html?&DbPAR=WRITER&System=UNIX

The second 302 redirect is fine as it simply replaces the history. The
two window.location.href assigments however should be replaced with
window.location.replace.

Change-Id: I6fbe7141de87c939aa816fdfc2fe5255e9792e0b
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/106429
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2020-11-26 12:03:03 +01:00
dc2b016f20 remove *.google.com and *.googleapis.com from Content-Security-Policy
These are obsolete, since search is based on xapian-omega not on google search

Change-Id: I1858a3118f6b4778266c4a3d2a6559866ce8cb09
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/94257
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2020-05-15 01:23:50 +02:00
5ccfc30b13 Let's have Content-Type everywhere.
Change-Id: I000658561d76d6a95a4acbc621db5e3f6d081e08
Reviewed-on: https://gerrit.libreoffice.org/59051
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2018-08-16 09:20:34 +02:00
e76947a271 The <version>/index.html can default correctly, no need to do it in the root.
Change-Id: If74aaea6924638f9fef647121da4a35c66fc0213
Reviewed-on: https://gerrit.libreoffice.org/59048
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2018-08-16 09:18:53 +02:00
049c187e05 Let's make the help urls more standard, and use ?Target=...&... form.
Change-Id: Ic2568c769ab11e3622f71b92a46fb124012a3c90
Reviewed-on: https://gerrit.libreoffice.org/58865
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-08-14 17:06:22 +02:00
9e4660049b Avoid several JS errors.
Change-Id: If0b8b4f3e8c3464f4e7f812ba727a929330438f3
Reviewed-on: https://gerrit.libreoffice.org/58864
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-08-12 16:20:25 +02:00
7ab3eded41 Use window.location.href = ...; instead of window.open(..., '_self');
Otherwise the interim URLs end up in the history.

Change-Id: If99aa1a29126f93387d2f5a6460cc0d43b488cd9
Reviewed-on: https://gerrit.libreoffice.org/58867
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-08-12 15:45:51 +02:00
51f6c350e5 Fix typos
Change-Id: If081f3b5ac8b752234d115709731a104cea950d9
Reviewed-on: https://gerrit.libreoffice.org/52208
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-04-11 15:03:59 +02:00
2c7cfc527a Add Content-Security-Policies in new Help pages
Change-Id: I115fc16fbf4b8284bfedc735761434bb586f0355
Reviewed-on: https://gerrit.libreoffice.org/47660
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-01-10 01:14:56 +01:00
88da65789d More localization WIP for helponline
* Added more languages in page UI
* Language names in their own language in language dropdown
* Attempt of switch to browser language by default

Change-Id: Iea133b24e6121bb5da7af21fe5ca4ce9cde8c14d
Reviewed-on: https://gerrit.libreoffice.org/41911
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2017-09-05 21:45:31 +02:00
5f88c56e43 tdf#97745 Enable page debug for 6.0
Fix url detection in help.html
Connect xhp file displayed to opengrok
Hide momentarily debug control

Change-Id: Icab467ee797d3ec94082a7b3b722bfd2485b5b2e
Reviewed-on: https://gerrit.libreoffice.org/41100
Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br>
Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2017-08-12 23:59:45 +02:00
ae4b238aec tdf#97745 use lowercase for file names
synch with https://gerrit.libreoffice.org/#/c/40698/3

Change-Id: I7cc72312a729fcd6468198fd3cb9b4686e588832
Reviewed-on: https://gerrit.libreoffice.org/40812
Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br>
Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
2017-08-06 22:25:15 +02:00