Skip to content

Chrome update wrecked relative paths - #2

Open
iaindooley wants to merge 4 commits into
dgrinton:masterfrom
iaindooley:master
Open

Chrome update wrecked relative paths#2
iaindooley wants to merge 4 commits into
dgrinton:masterfrom
iaindooley:master

Conversation

@iaindooley

Copy link
Copy Markdown

Hey, I found that some update in Chrome broke the relative paths which used to Just Work(TM).

I couldn't find anywhere in the code where you were actually setting a base path -- it appears that previously chrome just automatically dealt with all the various relative paths ...

Anyway I added in code to detect what the base path actually is by assuming that the html base file is in a "sibling" directory from where the current document resides.

This isn't as elegant as it was before -- perhaps you have a better solution because before you could just include anything from anywhere and it all just seemed to work.

I have only updated the .js file in fragmentify-ext/ i'm not sure that the others need it.

Let me know what you think!

@dgrinton

dgrinton commented Nov 7, 2016

Copy link
Copy Markdown
Owner

Hey! I haven't used this for years and I don't really want to keep maintaining it. Do you want to take over?

…to not need this anymore, either that or the change I made last year was specific to another repo and this change will then break that repo... time will, of course, tell, and upon discovery of that I will be better able to tell how to fix this properly instead of continuing to hack into it :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants