WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.8 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • Feature request: Bakery to support <base href="xx">
  • Print
Pages: [1]   Go Down

Author Topic: Feature request: Bakery to support <base href="xx">  (Read 6179 times)

quartz

  • Guest
Feature request: Bakery to support <base href="xx">
« on: December 01, 2010, 07:10:22 PM »
Hi,

I think it would be a useful feature for bakery to still work on sites where we have set

Code: [Select]
<base href="<?php echo WB_URL; ?>">
Right now, if I use this, the links generated by bakery won't work, because they are relative to the 'current' page. So it ends up going to "www.site.com?p=10" which of course is not valid. (It should be "www.site.com/pages/bakery/products.php?p=10" or something like that).

To make the fix, the links generated by bakery will have to be:

<URL to bakery page>+<relative link>
pages/bakery/products.php+?p=10

Thanks!
Logged

hal

  • Guest
Re: Feature request: Bakery to support <base href="xx">
« Reply #1 on: December 01, 2010, 09:43:07 PM »
...
« Last Edit: March 30, 2011, 05:53:08 PM by hal 9000 »
Logged

quartz

  • Guest
Re: Feature request: Bakery to support <base href="xx">
« Reply #2 on: December 05, 2010, 12:00:44 AM »
Thanks, that sounds like it would work. But, it is a hack to make it work. Ideally, all links generated by the bakery module should work with a base href set to WB_URL, that's why I called it a feature request.

Thanks  :-D
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • Feature request: Bakery to support <base href="xx">
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2