feature request for official implementation of feature described here:
http://oregonstate.edu/webprojects/drupal/internal_links
In our implementation, we have modified the PathFilter module to automatically take any link with 'http(s)://server.hostname.com/path/to/drupal/install/' or '/path/to/drupal/install/' and replace it with 'internal:' when saved to the database.
On edit, all instances of 'internal:' are replaced with the appropriate relative or absolute link so WYSIWYG editors will function correctly. On view, all instances of 'internal:' are replaced with an absolute or relative link to the item. Always remember that they will be stored as 'internal:' in the database.
Comments
Comment #1
alexanderpas commentedI've send the following mail trough this form:
http://oregonstate.edu/tools/mailform?to=osuweb@lists.oregonstate.edu&re...
------
To: OSU Central Web
Subject: OSU Drupal Internal Links
Message:
To: Webmaster Responsible for Drupal Modules
Dear Reciever,
I've read about a very useful change you've made in the Drupal Module PathFilter (http://drupal.org/project/pathfilter)
This change is explained on your site here:
http://oregonstate.edu/webprojects/drupal/internal_links
My request, as member of the Drupal community is the following:
If it is possible, are you willing to contribute the change back into the community?
If you decide you're furfilling this requestit can be done in one of the following ways:
- Add a response with a patch-file (http://drupal.org/patch/create) to the following issue: http://drupal.org/node/283275
- Send the changed module (usually found at /sites/all/modules/PathFilter/ in your Drupal root directory) to my e-mail address: alexanderpas@yahoo.co.uk
Either way, I would like to thank you for your time.
Awaiting your awnser, Alexander Pas
Comment #2
Garrett Albright commentedMy Pathologic module may work for this case; it can "unabsolute" absolute paths. It doesn't change the content of a post before it is put into the database, however; that is not the task of an input filter.
Comment #3
harking commentedHi Alexander,
Here is the patch: http://drupal.org/node/148300
Comment #4
alexanderpas commentedduplicate of #148300: [Push #1]: Automatic url conversion to internal links
if you have anything to add to this issue, please do it in that issue