InfoAmazonia / jeo-plugin

Interactive Map blocks for Wordpress Gutenberg
GNU General Public License v3.0
8 stars 5 forks source link

[Layer Edit Page] Map attribution link field in Configuration: add a regex for domains #77

Closed pamelars86 closed 4 years ago

pamelars86 commented 4 years ago

USER TEST

image

The data attribution link checks that any text must have a domain format.

Other tests: if "data attribution link" starts with '/'. Ex. "/my-url". The attribution name in the map published will have this url: http://jeo.hacklab.com.br/my-url". if "data attribution link" doesnt' start with '/'. Ex. "my-url". The attribution name in the map published will have this url: http://jeo.hacklab.com.br/post-url/my-url.

The attribution name published appears here: image

bwstefano commented 4 years ago

@pamelars86, please assist with what I should be looking at here.

pamelars86 commented 4 years ago

@bwstefano This is the test:

image

The data attribution link checks that any text must have a domain format.

Other tests: if "data attribution link" starts with '/'. Ex. "/my-url". The attribution name in the map published will have this url: http://jeo.hacklab.com.br/my-url". if "data attribution link" doesnt' start with '/'. Ex. "my-url". The attribution name in the map published will have this url: http://jeo.hacklab.com.br/post-url/my-url.

The attribution name published appears here: image