Anonymous User 13868920
(@anonymized-13868920)
The website url is retrieved using the WordPress function get_site_url (http://codex.ww.wp.xz.cn/Function_Reference/get_site_url).
Have you by any chance set up the site url to be /wordpress instead of / ?
Or maybe you have a redirect in the htaccess file?
The parameters are:
WordPress Address (URL) : http://www.mysite.com/wordpress
Site Address (URL) : http://www.mysite.com
No redirection in htaccess
@vickzoe,
Your home url is different from the site url, so to make it work you can go to wp-content/plugins/wordpress-mobile-pack/admin/sections/wmp-show-mobile.php and replace “<?php echo get_bloginfo(‘url’);?>” with “<?php echo home_url();?>”.
Ok I’ll try this evening.
It can be a parameter in the futur version.
Nope ! It’s the same problem. On mobile, in the mobile view, when you click on the ‘Switch to Web site’ the url include WordPress.
@vickzoe,
home_url() function returns the Site Address (URL) so it should echo the url without /wordpress. Please tell me if in your wp-config.php file you cand find a line “define( ‘WP_HOME’,….)” ?
I don’t have this line!
This is my config
/* That’s all, stop editing! Happy blogging. */
$pageURL = ‘http’;
if ($_SERVER[“HTTPS”] == “on”) {$pageURL .= “s”;}
$pageURL .= “://”;
if ($_SERVER[“SERVER_PORT”] != “80”) {
$pageURL .= $_SERVER[“SERVER_NAME”].”:”.$_SERVER[“SERVER_PORT”];
} else {
$pageURL .= $_SERVER[“SERVER_NAME”];
}
define(‘WP_SITEURL’, $pageURL . ‘/wordpress’);
@vickzoe,
Go to wordpress-mobile-pack/themes.base/index.php and replace
“websiteUrl: ‘<?php echo get_site_url();?>?wmp_theme_mode=desktop'” with “websiteUrl: ‘<?php echo home_url();?>?wmp_theme_mode=desktop'” and please let me know if that worked for you.
Ok this update solved my problem. But ….
In mobile mode, when I select a galery, then double clik on a picture, the permalink is http://www.mysite.com/sample-post/ is change to http://www.mysite.com/#article/(number). This redirect to the home page.
@vickzoe,
Can you give me the url of your site so I can check out the problem with your image gallery?
Problem solved with a patch that will be included since V2.0.2