Jump to content

[SOLVED, not] strange URL - browser shows all server path


zota
 Share

Recommended Posts

Hello @zota,

first of all it would be good, if you would show how you have build your navigation.

Have you made a simple navigation with a foreach of all children linking to their url, like in this tutorial, or have you made something different?

With no further information it is difficult to help you. ?

Regards, Andreas

Link to comment
Share on other sites

You have to recheck how you are using Bootstrap css
This isn't going anywhere:

<a class="navbar-brand" href="#">Casa da Lógica</a>

In your processwire backend did you rename Home to logos ?

This way of navigation is not going to work:

<ul class="nav navbar-nav">
<li class='active'><a href='/logos/'>Home</a> </li>
<li><a href='/logos/oficina/'>Oficina</a> </li>
<li><a href='/logos/logica/'>Lógica</a> </li>
</ul>

 

You have to use  $pages->get to make the navigation work:

<ul class="nav navbar-nav">
<li class='active'><a href="<?php echo $pages->get("/logos/")->url ?>">Home</a> </li>
<li><a href="<?php echo $pages->get("/logos/oficina/")->url ?>">Oficina</a></li>
<li><a href="<?php echo $pages->get("/logos/logica/")->url ?>">Lógica</a></li>
</ul>

 

Why do you link to your pages Oficina and Lógica like /logos/oficina/ and /logos/logica/ ?

It should be /oficina/ and /logica/

Make a screenshot of your backend

 

 

 

Link to comment
Share on other sites

OK, thanks for the tips, I'll re chek in a few hours.  It was working on my localhost and I presume my check was too lazy before the upload... ? Don't get mad

I'll give notice, maybe it will be good for other lazy people...
 

Link to comment
Share on other sites

Hi,

No, not problem solved, but seems I have news (or I am totally confused).

After some try I become suspicious about the server and softaculous. (Yep I started my pw install with the same softaculous.)

Went on a new softaculous install of Minimal Site Profile just for testing.   After the install, without any login or change,  I gave a few clicks on the menu. And

the browser starts showing things like: http://julio.x10host.com/home/juliox15/public_html/pw2nd/
and the right would be

http://julio.x10host.com/pw2nd/

without the anoying home/juliox15/public_html/

right? (pw2nd is a subdir where softaculous installed pw Minimal Site Profile)
If you are curious, you can follow one or both of those links, not in a hurry to kill it.
Besides leave softaculous alone or give another server a try, any suggestion?
(Meanwhile I messed up the previous install but that's life)
Thanks

 

Edited by zota
make it more clear
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...