Skip to Content Skip to Menu

acceptedterms, Terms and Conditions field

10 years 1 week ago #252017 by jimmyandrews
acceptedterms, Terms and Conditions field was created by jimmyandrews
I believe I may have found a very insignificant bug. CB 2.0.2, if you have a partial URL for the location of your terms, say, index.php/tos, everything works on the front end. However, if you are in the back end managing users and you click on the terms link, it directs you to administrator/index.php/tos. There is no page for that and instead of returning a 404, it is an semi-formatted backend sitemap. Luckily it isn't accessible to the public and they are presented with a login page for backend management (if they happen to navigate somehow magically to that page.)

Of course, it is behaving like it is supposed to. The code is still pointing to index.php/tos, but it just isn't taking into account I'm in the admin directory.

Easy solution from my end, I put in the complete URL and it tested fine.

Better at infrastructure and hardware :-)
Trying to change the world with people's free time!
Be a part of the movement, find out more at what2do.live/

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
10 years 5 days ago #252063 by nant

jimmyandrews wrote: I believe I may have found a very insignificant bug. CB 2.0.2, if you have a partial URL for the location of your terms, say, index.php/tos, everything works on the front end. However, if you are in the back end managing users and you click on the terms link, it directs you to administrator/index.php/tos. There is no page for that and instead of returning a 404, it is an semi-formatted backend sitemap. Luckily it isn't accessible to the public and they are presented with a login page for backend management (if they happen to navigate somehow magically to that page.)

Of course, it is behaving like it is supposed to. The code is still pointing to index.php/tos, but it just isn't taking into account I'm in the admin directory.

Easy solution from my end, I put in the complete URL and it tested fine.


I believe this is how Joomla works - all relative URLs in backend get prefixed by administrator/ - not a bug imo - you can force absolute URLs if you want, but I would just avoid clicking on such links in the backend.

Please Log in or Create an account to join the conversation.

10 years 5 days ago #252148 by jimmyandrews
Replied by jimmyandrews on topic acceptedterms, Terms and Conditions field
OK, fair enough. But not for nothing, if your advice is to "avoid clicking on such links in the backend" then, IMO, those are bugs. ;-)

Great product overall, thank you!

Jimmy

Better at infrastructure and hardware :-)
Trying to change the world with people's free time!
Be a part of the movement, find out more at what2do.live/

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48482
  • Thanks: 8283
  • Karma: 1443
10 years 5 days ago - 10 years 5 days ago #252151 by krileon
Replied by krileon on topic acceptedterms, Terms and Conditions field
You supplied a relative URL (began with index.php). The way relative URLs work is your browser will prefix the domain automatically. So if you supply index.php and you're viewing your site from example.com/administrator then you'll end up with a URL of example.com/administrator/index.php. There's really nothing to fix here as it's working exactly how relative URLs are designed to work. If you want an absolute URL then add your domain to it and it'll be absolute.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 10 years 5 days ago by krileon.
The following user(s) said Thank You: nant

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum