Author Topic: Section in Data Protection Directive URL  (Read 405 times)

Offline richwingerter

  • Posts: 60
Section in Data Protection Directive URL
« on: November 22, 2019, 12:52:00 AM »
I used the administrative settings to point the Data Protection Directive to a specific page on my site. However, I now get a URL for it in the form of:

WB_URL/pages/data-protection-page#Sec31

This means that when you click the link it positions you somewhere in the middle of the page.

I'd like to remove the "#Sec31" anchor from the URL in the reference on the signup_form page. But it uses a function in \bin\helpers\ParentList::getDsgvoDefaultLink(). I don't want to alter this function.

Is there another way to have this reference go to the top of the page?

Note that "31" is the value of the page ID and the code SecId. I don't see this recorded in the wb_settings table. In fact, I don't see the page name or anything else relating to this page recorded there. Does anyone know where WB caches the information for the Data Protection Directive page?

Thanks in advance!

Offline dbs

  • Betatester
  • **
  • Posts: 8399
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Section in Data Protection Directive URL
« Reply #1 on: November 22, 2019, 07:56:15 AM »
Hi, seems this work not right.
In my case on the registration page the protection link contain the path of the form page. In form page was no data protection choosed.

If you can use [wblink123] for such links.

Offline hgs

  • Betatester
  • **
  • Posts: 1276
    • EFG MG
Re: Section in Data Protection Directive URL
« Reply #2 on: November 22, 2019, 07:59:22 AM »
My link also looks like this
https://wb_url/pages/datenschutz.php#Sec21
and does what he should and opens the page with the pid21 "Privacy".
I still don't understand what's wrong with you?
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

Offline dbs

  • Betatester
  • **
  • Posts: 8399
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Section in Data Protection Directive URL
« Reply #3 on: November 22, 2019, 08:07:41 AM »
But Sec21 means section, not page_id.
Can't be right.

It is a section anchor for the case if your data protection section is not at the top of the page.

Offline hgs

  • Betatester
  • **
  • Posts: 1276
    • EFG MG
Re: Section in Data Protection Directive URL
« Reply #4 on: November 22, 2019, 08:19:20 AM »
Ok, I select in the module "Form" in the BE under option the page "Privacy" and save it.
The result is then in my case in order. There is also no "anchor" #Sec21 on the page.
I'm confused. :oops:
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

Offline dbs

  • Betatester
  • **
  • Posts: 8399
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Section in Data Protection Directive URL
« Reply #5 on: November 22, 2019, 08:43:43 AM »
Quote
I'd like to remove the "#Sec31" anchor from the URL
Try this: WB Settings > Advanced Settings > Server Settings > Section Anchor Text:  write the word none

Offline hgs

  • Betatester
  • **
  • Posts: 1276
    • EFG MG
Re: Section in Data Protection Directive URL
« Reply #6 on: November 22, 2019, 01:31:31 PM »
 (Y)This is the solution, now the link looks like this
https://wb_url/pages/datenschutz.php
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

Offline richwingerter

  • Posts: 60
Re: Section in Data Protection Directive URL
« Reply #7 on: February 03, 2020, 01:03:26 AM »
Yes, dbs. Much better. I change "Sec" to "none" and it works, now.

Thank you!