Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SEF bug?
#1
i guess its a bug i observe: if you've got fancy urls turned on, and edit the page, then you click on "view page" button in the page properties, you will have a trailing slash! so the next page you click in your menu will have a nested names.
example: you edited domain.com/page1, and clicked "view page". you will be redirected to the domain.com/page1/, so the next page in your menu you go, will be not domain.com/page1, but domain.com/page1/page2!
Reply
#2
That shouldn't happen with the standard get_navigation template tag, that uses absolute URLs for menu links. Have you changed the function, or are you using a plugin or something for that?
Reply
#3
nah, plain php menu (php include) in my template
Reply
#4
Actually, its not the menu issue, its in the edit page options.
The trailing slash is added by the "view" button. And then somehow that link become base path.
Reply
#5
Well then use absolute URLs in your menu, or at least relative to root.

You could set up GS so that it doesn't add the trailing slash (with a custom permalink structure), but I think you could still have some issue (if you have several page levels)
Reply
#6
mate, i really know how to deal with it, i just thought i should mention it here, so it will be fixed in the next releases. cheers.
Reply
#7
It's not a bug. That's the normal behaviour.

If you don't want the trailing slash, change your custom permalink to structure to:
%parent%/%slug%
or
%slug%
Reply
#8
you're absolutely right. BUT, if you have GS by default set up your fancy urls without slash(with empty pretty urls box in your backend i mean), you expect your "view" button use the same behavior!
Reply
#9
it does
%parent%/%slug%/

is the default

I dont get it.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#10
i sent you a screenshot via PM, shawn
Reply
#11
I don't get it either.
If you use a custom permalink structure, the Use Fancy URLs checkbox is simply ignored by GS.
Reply
#12
Make sure your permalink is not an empty space ( known bug )

No clue how your menu links are relative. Mine are not, cannot reproduce.

What version ?
What is the exact slug ?
What is the php code to show menu?
What is the html code output in your menu ?
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#13
(2014-01-16, 03:10:20)shawn_a Wrote: No clue how your menu links are relative. Mine are not, cannot reproduce.

He said, the menu is hardcoded.
Reply
#14
(2014-01-16, 03:10:20)shawn_a Wrote: Make sure your permalink is not an empty space ( known bug )
ah, you mean the field should not be empty, and its a bug? I thought its the way it should work. That the empty field means default SEF setting.

Quote:No clue how your menu links are relative. Mine are not, cannot reproduce.
I sent you the link via PM, you can see yourself.
Reply
#15
(2014-01-16, 07:25:24)lukoie Wrote:
(2014-01-16, 03:10:20)shawn_a Wrote: Make sure your permalink is not an empty space ( known bug )
ah, you mean the field should not be empty, and its a bug? I thought its the way it should work. That the empty field means default SEF setting.

shawn_a surely meant "blank/space character", not "empty". If the field is empty the default fancy URL structure is used.
Reply
#16
yeah not a bug, if your using a custom nav then you need to change your permalink to match.
Sorry
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#17
Ok, i will fill the fancy url field then. It's empty now(no space character either!). It was empty by default, btw.
Reply
#18
Yes its empty by default.
The default is
%parent%/%slug%/ when blank.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply




Users browsing this thread: 1 Guest(s)