"See FAQ in Frontend" button missing "/" in address.

Please report bugs here!

Moderator: Thorsten

Post Reply
WEB_DEV
Posts: 1
Joined: Wed May 21, 2014 10:30 am

"See FAQ in Frontend" button missing "/" in address.

Post by WEB_DEV »

My apologies if either this has been answered (saw some stuff in German, no clue if it is related...) or maybe as well this is not a bug in phpMyFAQ, rather maybe the update process did not work properly (only updated by one revision number)

At any rate, I am experiencing an issue from the "edit record" and if there is a different name for your initial FAQ, it is messed up too.

Very simple issue, I am for some reason having difficulties finding what generates that address each time to fix it readily. Let it be known when you select "See FAQ in Frontend" the address is missing its forward slash before "index" portion of the URL. Since I am working in a folder of a much larger web system, it sends me off to the website by mistake.

So clicking that button yields something like this:

Code: Select all

http://www.mycoolsite.com/mycoolsitefaqsindex.php?action=artikel&cat=8&id=7&artlang=en
Should read:

Code: Select all

http://www.mycoolsite.com/mycoolsitefaqs    "/"      index.php?action=artikel&cat=8&id=7&artlang=en
In this case, to the left of the forward slash is just the URL to the folder, but the address generated needs a "/" between the folder and the generated - "index.php?action=artikel&cat=8&id=7&artlang=en"

I do not think this has anything to do with the other server side stuff running, as this only showed up after phpMyFAQ made a "successful update" to the current version v2.8.22 running on a dedicated system that has not had any updates between versions of phpMyFAQ as an update.

Any help appreciated - this has to be s simple edit, I just cannot for some reason find the script that generates that for "btn btn-info" for that spot.

I do think it is a bug as this only appeared after the update.
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: "See FAQ in Frontend" button missing "/" in address.

Post by Thorsten »

Hi,

add the trailing slash in the main configuration of your FAQ at
URL of your FAQ (e.g.: http://www.example.org/faq/)
and it'll work

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply