custom-pages icon indicating copy to clipboard operation
custom-pages copied to clipboard

Cannot acces to public custom page in public space

Open Gilbertdelyon opened this issue 1 year ago • 2 comments

Cannot acces to custom page in space: Context: HH1.14.4 or HH1.15 beta (same behaviour) Custom Pages Version 1.9.4 I am logged in as site admin

Custom page N°1 ;

  • Without adding to navigation (Direct link)
  • Template type
  • id = 49
  • Page visibility = Members Only

When I enter the url “my_site/index.php?r=custom_pages%2Fview&id=49” in browser, it works! so far so good.😀

Custom page N°2:

  • based on the same template as page N°1
  • Iinked to a space menu item
  • id=109
  • the space is public (Visible for All - Members and Guests)
  • Default space content visiblity = public
  • Page visibility = Public
  • I am member of this space

When I enter the url “my_site/index.php?r=custom_pages%2Fview&id=109” in browser, it doesn’t work! 😡

When I enter “my_site/index.php?r=custom_pages%2Fview&id=109&cguid=my-cguid-blablabla” **it works.**😀

This is very annoying because I need to use a link to this page in a snippet. The snippet is template type, so I could add the cguid with help of a pair of javascript lines but I guess there is a bug some where in custom pages module. What would be your advice?

Gilbertdelyon avatar Oct 27 '23 12:10 Gilbertdelyon

@Gilbertdelyon

This is very annoying because I need to use a link to this page in a snippet. The snippet is template type, so I could add the cguid with help of a pair of javascript lines but I guess there is a bug some where in custom pages module. What would be your advice?

It is correct that Space/Profile content always requires a cguid. This is necessary for PrettyURLs. What is the problem with including the cguid in the link URL? You have to specify the ID anyway?

Regarding JS, it may be an issue with v15 and nonces.

luke- avatar Oct 27 '23 16:10 luke-

@luke- Oups, sorry, I made newbie big mistake in my mind "uid" was for user_id ! so I thought "cguid" vas specific to each user and I didn't attached it to page url Now I understand cguid is [Correlated Transaction Unique Identifier] and everthing is clear for me. and it works! Thank you for this precious help.

Gilbertdelyon avatar Oct 27 '23 20:10 Gilbertdelyon