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

Release 4.1.3 seems to be causing Page URL issues, resulting in 404's #73

Closed
paulhibbitts opened this issue Aug 11, 2019 · 11 comments
Closed

Comments

@paulhibbitts
Copy link

paulhibbitts commented Aug 11, 2019

The newest release (4.1.3) seems to be causing Page URL issues, where a page path passed to a Shortcode is not being rendered as expected.

For example, here is a page using the Presentation Shortcode, which was working up to the release of 4.1.3:
http://test.hibbittsdesign.org/grav-skeleton-open-matter-presentation-hub-site/page-with-presentation

Shortcode syntax:
[presentation="/presentations/placeholder-slides"]

Chatting with Ole about this issue, he flagged this code that might be related:
https://github.com/getgrav/grav-plugin-shortcode-core/blob/4.1.3/shortcode-core.php#L233

Might it be possible to revert to 4.1.2 for now, as this issue is causing all of my skeletons which use Presentation shortcodes to not work? Happy to help test possible fixes etc.

Thanks very much,
Paul

@rhukster
Copy link
Member

mabye its the bbcode style shortcode syntax? Is there an alternate longer syntax?

@OleVik
Copy link

OleVik commented Aug 11, 2019

@rhukster
Copy link
Member

Does removing the $page->content() fix the issue?

@paulhibbitts
Copy link
Author

paulhibbitts commented Aug 11, 2019

Hi @rhukster @OleVik , yes I just did a quick local test and removing that line the shortcode rendered the URL correctly.

@rhukster
Copy link
Member

Ok, i'll have to find an alternative solution because this was a fix for something else.

@paulhibbitts
Copy link
Author

Thanks so much for looking into it @rhukster!

@paulhibbitts
Copy link
Author

paulhibbitts commented Aug 11, 2019

Hi @rhukster , as a short-term fix for my four skeletons I thought I would make ShortCode Core 4.1.2 a dependency during theme install - however, this format does not seem to work:

- { name: shortcode-core, version: '=4.1.2' }

Am I doing something wrong here?
Thanks!
ps - I also tried ~4.1.2

@rhukster
Copy link
Member

it only works with > or >= i think. This is because GPM only knows about the latest version, it doesn't keep track for all versions.

rhukster added a commit that referenced this issue Aug 11, 2019
@rhukster
Copy link
Member

BTW can you please test with the latest fix?

@paulhibbitts
Copy link
Author

Great news @rhukster , that fix works for several test sites of mine! Thank you so much for looking into this issue🙂

@rhukster rhukster added the fixed label Aug 11, 2019
@rhukster
Copy link
Member

Cool, released as v4.1.4 .. should show up in next hour

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

No branches or pull requests

3 participants