WebsiteBaker Community Forum

WebsiteBaker Support (2.12.x) => General Help & Support => Topic started by: richwingerter on November 22, 2019, 12:52:00 AM

Title: Section in Data Protection Directive URL
Post by: richwingerter 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!
Title: Re: Section in Data Protection Directive URL
Post by: dbs 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.
Title: Re: Section in Data Protection Directive URL
Post by: hgs 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?
Title: Re: Section in Data Protection Directive URL
Post by: dbs 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.
Title: Re: Section in Data Protection Directive URL
Post by: hgs 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:
Title: Re: Section in Data Protection Directive URL
Post by: dbs 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
Title: Re: Section in Data Protection Directive URL
Post by: hgs 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
Title: Re: Section in Data Protection Directive URL
Post by: richwingerter on February 03, 2020, 01:03:26 AM
Yes, dbs. Much better. I change "Sec" to "none" and it works, now.

Thank you!