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

Fix taxonomy not loading when using site subdirectory #3541

Merged
merged 1 commit into from
Apr 16, 2021

Conversation

jasonvarga
Copy link
Member

@jasonvarga jasonvarga commented Apr 16, 2021

If you have a site that uses a subdirectory (like /subdirectory/ or /blog/ or /statamic/) then it would incorrectly prefix that to the taxonomy's uri, which should be relative to the site root.

When you visit /subdirectory/tags, it would look for a taxonomy with a uri of /tags, which doesn't match what Statamic thinks the taxonomy's uri is. This results in a 404. A similar thing happens for the term url.

The taxonomy url would also have the double prefix. e.g. /subdirectory/subdirectory/tags.

@jasonvarga jasonvarga merged commit 5dc9a27 into 3.1 Apr 16, 2021
@jasonvarga jasonvarga deleted the fix/taxonomy-subdirectory branch April 16, 2021 16:30
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

Successfully merging this pull request may close these issues.

1 participant