Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After starting the download procedure for a Space blueprint a page with a return button and a link with the text 'click here to download the file' is presented. Both links do not work because the Drupal paths are not translated to absolute urls.
Comments
Comment #2
Jorrit CreditAttribution: Jorrit at nCode commentedSee patch
Comment #3
Jorrit CreditAttribution: Jorrit at nCode commentedComment #4
mpotter CreditAttribution: mpotter at Phase2 commentedI need a procedure to reproduce this. The current code works fine here and on Pantheon. Do you have clean_urls enabled? Is your Atrium site within a subdirectory of your server and if so do you have the $base_url set in your settings.php?
Comment #5
Jorrit CreditAttribution: Jorrit at nCode commentedAre you saying that the return button is working on your installation?
Comment #6
Argus CreditAttribution: Argus as a volunteer commentedCould you post steps to reproduce the issue on a clean installation?
Comment #7
Jorrit CreditAttribution: Jorrit at nCode for DOM Digital Online Media GmbH commentedI have an OpenAtrium site on Pantheon that I created to demonstrate another bug. Demonstrating this bug requires admin permissions so I will be sending the password of the user 'adminuser' to you via the Drupal contact form.
Extra note: downloading the 'Default' taxonomy term causes an error.
Comment #8
mpotter CreditAttribution: mpotter at Phase2 commentedI probably won't be able to get to this before next week (not in time for 2.615 unfortunately) but wanted to confirm that I received the email.
Comment #9
Argus CreditAttribution: Argus as a volunteer commentedConfirming. Created a separate issue for the download error on the Default taxonomy term: #2860636: Downloading the 'Default' Blueprint taxonomy term causes an error
Comment #10
mpotter CreditAttribution: mpotter at Phase2 commentedHere is a patch that should fix the Return link.
Comment #11
mpotter CreditAttribution: mpotter at Phase2 commentedActually, the patch from #2 was also missing an "absolute". Here is an update.
Comment #12
Jorrit CreditAttribution: Jorrit at nCode for DOM Digital Online Media GmbH commentedWhy is 'absolute' necessary?
Comment #13
mpotter CreditAttribution: mpotter at Phase2 commented"absolute" adds the "http://..." to the URL which is needed by the browser for the full href value printed in the blueprint-download-page.tpl file.
Comment #14
mpotter CreditAttribution: mpotter at Phase2 commentedIf you can, verify that the latest patch works for you and RTBC this and I'll try to get it into the next Atrium release.
Comment #15
Jorrit CreditAttribution: Jorrit at nCode for DOM Digital Online Media GmbH commentedThe patch works.
I still don't understand why
absolute
is necessary when the link is printed in the website itself. With'absolute' = TRUE
the HTML becomes:<a href="http://host/admin/structure/taxonomy/space_type" class="btn btn-primary">Return to blueprints</a>
Without it, the link becomes:
<a href="/admin/structure/taxonomy/space_type" class="btn btn-primary">Return to blueprints</a>
The latter works fine and all links generated by Drupal look like that, so I do not understand your preference for
'absolute' = TRUE
.Comment #16
mpotter CreditAttribution: mpotter at Phase2 commentedYou are correct. I thought the "absolute" was needed when working in a different subdirectory on a site. But I just did a test of this and it works fine without. So here is an updated patch that I'll commit for the next release.
Edited: This is basically the same as #2 so I'll make sure you get the credit
Comment #17
mpotter CreditAttribution: mpotter at Phase2 commented