You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
We've also ran into this, it's a bit of a pain to have to filter out home page slugs with next's getStaticPaths. Could a new prop be added to the page interface for a relativeUrlPath? It would return the url path minus the root page slug. Page queries via a urlPath arg already work for relative paths.
A guaranteed relative url would also come in handy for other links in a site, at the moment you only have the option of using the url prop which is absolute or relative depending on the number of sites
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?The text was updated successfully, but these errors were encountered: