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

Multi site routes not working when the same pattern is used #4021

Closed
mark-chief opened this issue Mar 20, 2019 · 3 comments
Closed

Multi site routes not working when the same pattern is used #4021

mark-chief opened this issue Mar 20, 2019 · 3 comments

Comments

@mark-chief
Copy link

mark-chief commented Mar 20, 2019

Description

Same route patterns on different sites not working.

Only the primary site loads the template, the other site will display Page not found / Template not found

  1. Create 2 sites Site1 (primary) and Site2.
  2. Create identical routes for both sites but change the template path
  3. Go to url pattern in browser on Site 2 and get "Page Not Found Template not found: _events

Screen Shot 2019-03-20 at 16 28 01

Although I am loading Site2 in the browser, the screenshot suggests that craft is looking for the Site1 route template.

Screen Shot 2019-03-20 at 16 29 35

Additional info

  • Craft version: 3.1.18
  • PHP version: 7.1
@brandonkelly
Copy link
Member

Thanks for reporting that! Just fixed for the next release.

To get the fix early, change your craftcms/cms requirement in composer.json to:

"require": {
  "craftcms/cms": "dev-develop#d770f57016b0923acc4aa66d6f80f11edb636bf9 as 3.1.19",
  "...": "..."
}

Then run composer update.

@mark-chief
Copy link
Author

mark-chief commented Mar 21, 2019

Thanks for the update.

Also experiencing a similar issue when using a search form on a secondary site.

Not sure if linked or not but in the second site I get a template not found error, it is looking for the search/results template even though the form is set to site2/search/results.

@brandonkelly
Copy link
Member

@mark-chief Sounds unrelated. Can you post more details on a new issue?

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

No branches or pull requests

2 participants