Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

relative file paths keeps changing!

Featured Replies

  • Newbies

I have set up a simple DB and I'm trying to get it online. I've done this before and have not run into this problem before. The relative references within the files keep getting messed up. I can go through the page and all is fine (the Js & CSS files all connect) then after I edit a file, and try to come back to a "browse" page there's an extra folder added to the paths so the format file still loads, but none of the Js or CSS work! Any ideas on what's going on?

All the files (DB, html, css, js) are in the Web folder of FMPro, and it connects to the web just fine - then it falls apart. The DB is at mullindesigns.com:591/mason/

Thanks for any suggestions.

Ed Mullin

Version: v6.x

Platform: Mac OS X Panther

I see that the URLs are mixing between:

mullindesigns.com:591/FMPro?-db=News.fp5&-lay=general&-format=Mason/News.html

and

mullindesigns.com:591/mason/FMPro?-db=News.fp5&-lay=general&-format=News.html

You may need to check where the change is happening.

Good Luck.

Garry

  • Author
  • Newbies

Right, I have tried tracking that and I can't see anything. It seems to happen after I edit a record. Is there some variable or tag I need to be passing or something?

This thing is driving me nuts! and I can't find a decent reference book on this either!

Thanks, Ed

We may need to have a look at your "edit" page to see what is happening! What does this line look like:

<input type="hidden" name="-format" value="mynextpage.html"> or

<input type="hidden" name="-format" value="mason/mynextpage.html"> or

<input type="hidden" name="-format" value="/mason/mynextpage.html">

All the best.

Garry

Yes, it could also be the FORM tag, too. I didn't check your site, but we used to have similar problems...

<FORM ACTION="http://yoursite.com/mason" METHOD="post">

<FORM ACTION="http://yoursite.com" METHOD="post">

We try to use the former now and have each subsite's paths relative to that as though it were the main root Web folder. We got confused when we were putting the directory paths in the -format lines.

--ST

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.