torchbox / wagtail-grapple

A Wagtail app that makes building GraphQL endpoints a breeze!

Home Page:https://wagtail-grapple.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

urlPath generation with multisite setups.

dopry opened this issue · comments

In wagtail I have a site, example.com, setup. The root page is Example located at /example. When I query the pages over graphql they all come back with the urlPath /example/path/to/page. I have code in my frontend that parses /example out of the path for every page to generate links. I kind of understand how wagtail's multisite is supposed to work but don't use it. Is there a way to get grapple or wagtail to return a urlPath relative to the site?