Forum
View Page button in Admin repearting path directory
I have all my pages and subpages created in a "web_root/en/" folder, for example https://sitedomain.com/en/random-page.php.
In the Perch Admin I've set subpages to be created in the same directory, rather than ending up in a sub-directory. This all works fine, except when I click "View Page" in the Perch Admin, I get directed to https://sitedomain.com/en/en/random-page.php -- its repeating the "/en" directory for some reason.
I have custom menus set up in the nav on the main site, and those work fine as well, it just seems to be the "View Page" button in the Admin. How do I fix this.
Also as a sidenote, I just finished creating a sister site in the same way, and that seems to work fine, so I did something different along the way in building the second site, just can't figure out what it was or how to fix it.
Can you show me your diagnostics?
Diagnostics report HEALTH CHECK
Perch is up to date PHP 5.4.26 version is okay, but a little out of date. Consider updating soon. MySQL 5.0.45-community-nt is up to date Image processing available SUMMARY INFORMATION
Perch: 2.8.6, PHP: 5.4.26, MySQL: mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $, with PDO Server OS: WINNT, cgi-fcgi Installed apps: content (2.8.6), assets (2.8.6), categories (2.8.6) App runtimes: <?php $apps_list = array( 'content', 'categories', ); PERCH_LOGINPATH: /perch PERCH_PATH: D:\Users\S\sherwoodinn\www.sherwoodinn.ca\perch PERCH_CORE: D:\Users\S\sherwoodinn\www.sherwoodinn.ca\perch\core PERCH_RESFILEPATH: D:\Users\S\sherwoodinn\www.sherwoodinn.ca\perch\resources Image manipulation: GD PHP limits: Max upload 256M, Max POST 256M, Memory: 256M, Total max file upload: 256M Resource folder writeable: Yes HTTP_HOST: www.sherwoodinn.ca.wsd10.korax.net DOCUMENT_ROOT: D:\Users\S\sherwoodinn\www.sherwoodinn.ca REQUEST_URI: /perch/core/settings/diagnostics/ SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
That looks ok. Do you have a detail path set of search results in the region options?
I'm not completely sure what that means, but in Region Options -> Search, there is no URL set, no. I haven't messed with anything in Region Options.
Ok. Can you post your extended diagnostics - there's a couple of settings I'd like to check.
I can't see any reason why that should be happening. Is it the same in your dev environment? Is that also Windows?
I haven't tried it in my personal linux dev environment, but I just finished setting up a sister site, which is essentially the exact same setup as this one and on the same server, and it works fine. So I'm inclined to believe I did something differently the second time around this time when I created the pages, but I can't figure out what that is.
Ah - you have the site URL set to
/en
on the Settings page.That was it! Thanks for the help!