Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot acces to public custom page in public space #304

Open
Gilbertdelyon opened this issue Oct 27, 2023 · 2 comments
Open

Cannot acces to public custom page in public space #304

Gilbertdelyon opened this issue Oct 27, 2023 · 2 comments

Comments

@Gilbertdelyon
Copy link

Gilbertdelyon commented Oct 27, 2023

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?

@luke-
Copy link
Contributor

luke- commented Oct 27, 2023

@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.

@Gilbertdelyon
Copy link
Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants