Auto-Nav links using absolute primary domain links instead of correct sub-domain

Permalink Browser Info Environment
Hello,
Great add-on, got a little issue tho.
I've got a primary domain setup up x0.site.com
I'm loading 3 sub-domains to it: x1.site.com, x2.site.com, x3.site.com

On all sub-sites, the auto-nav is showing the main sub-domain page in the nav, despite having "Exclude from Nav" checked. Kinda like having a "home" button. Don't need it, not sure why it's not respecting the exclude from nav.

But the main issue is, in the auto-nav, the links are all absolute and go to the main primary domain's site, with the sub-domain URL mapped in the rest of it, giving a 404.

When I inspect a link, it looks like this:
<a href="https://x0.site.com/x1-Pg2" target="_self" class="dropdown-toggle">Sub-Domain x1, Page 2</a>


When it should look like this:
<a href="https://x1.site.com/x1-Pg2" target="_self" class="dropdown-toggle">Sub-Domain x1, Page 2</a>


I have all the additional attributes checked for each sub domain to override core functionality. Not sure why it's not working.
I'll PM you the actual URLs.
Thanks in advance!
Pat.

Type: Pre-Sale
Status: In Progress
PatrickHenry
View Replies:
PatrickHenry replied on at Permalink Reply
PatrickHenry
EDIT: The "Exclude from Nav" is working correctly, my bad. Didn't have it checked on the subdomains, only the primary.
Mainio replied on at Permalink Reply
Mainio
Hi,

I didn't yet have a look at the actual sites but just to start off, do you have the "Navigation Helper" override enabled under Multiple Domains common settings?

And are you using the "Multiple Domains Auto-Nav" instead of the core block?

Antti / Mainio
PatrickHenry replied on at Permalink Reply
PatrickHenry
Thanks for the prompt reply Mainio.
Double checked, and yes, all the Enhanced Core Components are checked.
I believe it did that when it installed by default as the documentation indicates. However, I've noticed quirks in older c5.6 before with checkboxes not turning on/off on pages when not in edit mode. So I figured, what the heck, I'll turn these on and off.
So I disabled Navigation Helper & Auto-Nav blocks.
Oddly, this seemed to make it work. When I inspect the links on the sub-domain auto-nav, they are still absolute and pointing at primary server (i.e.http://x0.site.com/x1-Page). But when clicked the sub-domain sticks (i.e.http://x1.site.com/x1-page).
Oddly unexpected, but it's working it seems, just not sure if it's working correctly.
Next I turned on Auto-Nav Enhanced Core Component. Test. Still working as before.
Turned on Navigation Helper Enhanced Core Component. The issue returns, doesn't work and auto-nav links go to primary domain and produce a 404.

So, I'm throughly confused as to what the proper setting should be. Documentation indicates that the auto-nav override goes into effect by default. Should I copy the auto-nave block controller from:
/packages/multiple_domains/blocks/auto-nav/controller.php

to
/application/blocks/auto-nav/


Thanks again!
Pat.
Mainio replied on at Permalink Reply
Mainio
Hi,

OK, this seems weird. We'll test this out on the latest c5 version in the upcoming days to see if we can replicate the issue.

For the block override, yes that is applied automatically as long as you have the "Auto-Nav Block" override in place. No need to copy and manually override.

Antti
PatrickHenry replied on at Permalink Reply
PatrickHenry
Thanks!
I’ve left it thus far with the Navigation override turned off, the others turned on.
Seems to work fine, haven’t seen an issue yet.
Could it be that the domain I’m working on is a secondary domain on the server, not the primary?
I contemplated setting it all up on Digital Ocean instead so it could be a primary, but by that point everything was working well.
Thoughts?
Thanks!
Kevin

> On Aug 25, 2016, at 3:37 AM, concrete5 Community <discussions@concretecms.com> wrote:

concrete5 Environment Information

# concrete5 Version
Core Version - 5.7.5.8
Version Installed - 5.7.5.8
Database Version - 20160412000000

# concrete5 Packages
Automatic Email Obfuscator (2.0.1), Easy Weather (1.0.0), ExchangeCore reCAPTCHA (0.9.0), File Reader (2.0.1), Group Text Pro (2.1), Multiple Domains (2.3.2), ProBlog (2.6.8), Vedana Theme (1.2.1).

# concrete5 Overrides
blocks/rss_displayer/templates/campus_alerts/view.css, blocks/rss_displayer/templates/campus_alerts/view.php, blocks/rss_displayer/templates/campus_alerts, blocks/rss_displayer/templates, blocks/rss_displayer, blocks/image/js/hover.js, blocks/image/js, blocks/image/templates/logo_project_ampersand.php, blocks/image/templates/svg_vector.php, blocks/image/templates, blocks/image, blocks/problog_list/templates/vedana_pglist_slide_in.php, blocks/problog_list/templates, blocks/problog_list, blocks/page_list/view.css, blocks/page_list/templates/vedana_portfolio.php, blocks/page_list/templates/vedana_slide_in.php, blocks/page_list/templates, blocks/page_list, js/redactor.js, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/sl_SI/LC_MESSAGES/messages.mo, languages/sl_SI/LC_MESSAGES, languages/sl_SI, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, blocks/rss_displayer/templates/campus_alerts/view.css, blocks/rss_displayer/templates/campus_alerts/view.php, blocks/rss_displayer/templates/campus_alerts, blocks/rss_displayer/templates, blocks/rss_displayer, blocks/image/js/hover.js, blocks/image/js, blocks/image/templates/logo_project_ampersand.php, blocks/image/templates/svg_vector.php, blocks/image/templates, blocks/image, blocks/problog_list/templates/vedana_pglist_slide_in.php, blocks/problog_list/templates, blocks/problog_list, blocks/page_list/view.css, blocks/page_list/templates/vedana_portfolio.php, blocks/page_list/templates/vedana_slide_in.php, blocks/page_list/templates, blocks/page_list, js/redactor.js, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/sl_SI/LC_MESSAGES/messages.mo, languages/sl_SI/LC_MESSAGES, languages/sl_SI, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache/2.4.12 (Unix) OpenSSL/1.0.1e-fips mod_bwlimited/1.4 mod_fcgid/2.3.9

# Server API
cgi-fcgi

# PHP Version
5.4.39

# PHP Extensions
apc, bcmath, blackfire, calendar, cgi-fcgi, Core, ctype, curl, date, dom, ereg, exif, filter, ftp, gd, gettext, hash, iconv, imap, json, libxml, mbstring, mcrypt, mysql, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, session, SimpleXML, sockets, SPL, sqlite3, standard, suhosin, tokenizer, xml, xmlreader, xmlwriter, zip, zlib.

# PHP Settings
max_execution_time - 120
apc.max_file_size - 1M
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 120
max_input_vars - 1000
memory_limit - 256M
post_max_size - 15M
sql.safe_mode - Off
upload_max_filesize - 128M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
suhosin.cookie.max_array_depth - 50
suhosin.cookie.max_array_index_length - 64
suhosin.cookie.max_name_length - 64
suhosin.cookie.max_totalname_length - 256
suhosin.cookie.max_value_length - 10000
suhosin.cookie.max_vars - 100
suhosin.executor.include.max_traversal - 0
suhosin.executor.max_depth - 0
suhosin.get.max_array_depth - 50
suhosin.get.max_array_index_length - 64
suhosin.get.max_name_length - 64
suhosin.get.max_totalname_length - 256
suhosin.get.max_value_length - 512
suhosin.get.max_vars - 100
suhosin.log.phpscript.is_safe - Off
suhosin.memory_limit - 0
suhosin.post.max_array_depth - 50
suhosin.post.max_array_index_length - 64
suhosin.post.max_name_length - 64
suhosin.post.max_totalname_length - 256
suhosin.post.max_value_length - 1000000
suhosin.post.max_vars - 1000
suhosin.request.max_array_depth - 50
suhosin.request.max_array_index_length - 64
suhosin.request.max_totalname_length - 256
suhosin.request.max_value_length - 1000000
suhosin.request.max_varname_length - 64
suhosin.request.max_vars - 1000
suhosin.session.max_id_length - 128
suhosin.upload.max_uploads - 25

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/601.7.7 (KHTML, like Gecko) Version/9.1.2 Safari/601.7.7

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.