Skip to main content

User login

What is OpenID?
  • Log in using OpenID
  • Cancel OpenID login
  • Create new account
  • Request new password
Register
  • Home
  • Browse
    • 2D Art
    • 3D Art
    • Concept Art
    • Textures
    • Music
    • Sound Effects
    • Documents
    • Featured Tutorials
  • Submit Art
  • Collect
    • My Collections
    • Art Collections
  • Forums
  • FAQ
  • Leaderboards
    • All Time
      • Total Points
      • Comments
      • Favorites (All)
      • Favorites (2D)
      • Favorites (3D)
      • Favorites (Concept Art)
      • Favorites (Music)
      • Favorites (Sound)
      • Favorites (Textures)
    • Weekly
      • Total Points
      • Comments
      • Favorites (All)
      • Favorites (2D)
      • Favorites (3D)
      • Favorites (Concept Art)
      • Favorites (Music)
      • Favorites (Sound)
      • Favorites (Textures)
  • ❤ Donate
Feedback

Need Shorter URL Links

bsperan
Sunday, June 5, 2016 - 15:33

Some time ago, all the site's sound and music was located in a specific "Audio" category and the link to this section was http://opengameart.org/browse/audio. Despite the length, it was possible to share this link on forums.

Now, Music and Sound Effects have their own categories. And I think that's great. However, the links to each is very long:

Sound Effects:

http://opengameart.org/art-search-advanced?keys=&field_art_type_tid[]=12

Music:

http://opengameart.org/art-search-advanced?keys=&field_art_type_tid[]=13

My real issue is not the length, per se. Rather, I find it impossible to share these links on other forums where I tend to participate. Specifically, these forums use a recent version of SMF. Simple Machines Forum software is quite popular - probably the most widely used.

I can enclose the above links with [url= (address) ] [/url] BBCode tags. However, the link itself does not work. That's because the [] brackets between field_art_type_tid and 12 or 13 is intercepted. I can only assume such brackets are prematurely interpreted as the end of the link.

Is there any way to make links to the 8 categories under Browse more resemble the short, simple links in Collections? If nothing else, can the [] brackets be removed or replaced with something else?

I suppose someone could create Collections of each Category. However, as people add new content, such collections would become outdated - unless there was some way to update them automatically.

  • Log in or register to post comments
MedicineStorm
joined 9 years 8 months ago
Monday, June 6, 2016 - 09:51
MedicineStorm's picture

Interesting... In the meantime, does replacing [] with %5B%5D work?

[url=http://opengameart.org/art-search-advanced?keys=&field_art_type_tid%5B%5D=12]OGA sound effects![/url]
 

--Medicine Storm

  • Log in or register to post comments
bsperan
joined 5 years 11 months ago
Monday, June 6, 2016 - 20:52

Hey! I guess that does work. Thanks!

  • Log in or register to post comments
p0ss
joined 11 years 4 months ago
Saturday, July 23, 2016 - 08:26
p0ss's picture

So I had a quick look into it, there are a few ways around this, but none are ideal. The best solution would be for us to use a  views path rewrite module like this

https://www.drupal.org/project/views_url_path_arguments

However that would require approval from Bart and extensive regression testing. 

 I could also set up searches for each of the art types at those specific URLs. That wouldn't require any new modules, however it would be a functional downgrade as you'd no longer be able to switch between content types with the checkbox.    

  • Log in or register to post comments