• Resolved theomoulin

    (@theomoulin)


    Hi,

    links in Foogallery’s image’s custom URLs that should read
    {+site url}/?page_id={+parent}
    show up as
    parent dir/%7B+site_url+%7D/?page_id={+parent}

    There’s something fishy going on here with curly braces not being picked up correctly. Does anyone know what to do here?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author bradvin

    (@bradvin)

    Hi,

    I have never used curly braces in a URL before like you propose.
    I also tried to do a google search for something similar but cannot find anything related. Is this some sort of plugin that does the URL substitution?

    Thread Starter theomoulin

    (@theomoulin)

    Hi,
    I guess that I put them there, after some Googling. This initially worked, serving up the Page to which I had attached the image. I believe it would still work, if something would not break it by replacing the first pair of curly braces by their respective codes. Now, I of course don’t know if that break comes from Foogallery, or from something else…
    Any ideas/help appreciated.

    Plugin Author bradvin

    (@bradvin)

    The curly brace is not a valid url character and is considered unsafe. Please read more here : https://meta.stackexchange.com/questions/79057/curly-brackets-in-urls

    Thread Starter theomoulin

    (@theomoulin)

    The curly braces were from Media Library Assistant, a plugin that is widely used.
    Another plugin that I currently use, Masterslider Pro, also uses curly braces to reference the image in the library with {{slide-image-url}}

    So to me, unexperienced as I am, it seems to be pretty common practice.

    Question remains: is Foogallery replacing the first pair of curly braces with its encoded variant, or is something else doing this?

    Plugin Author bradvin

    (@bradvin)

    Yes, FooGallery encodes the contents of all html attributes, as this is a security best practice.

    Thread Starter theomoulin

    (@theomoulin)

    Ok, understood. Perhaps this is a faq, but:
    with the curly braces MLA gave an easy way to link an image to the ‘parent’ page to which it had been attached. So a click/tap on the gallery image would take you to the other page with text etc.
    I’m using Polylang, so I have galleries in four-fold, where each image should link to its parent page in one of these 4 languages. Can FooGallery handle this with some ‘shortcode’ like the curly braces of MLA, or do I need to hard-code in the various permalinks for the different languages?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘{+site url}/?page id={+parent} in custom URL’ is closed to new replies.