The Artima Developer Community
Sponsored Link

Java Buzz Forum
Fixed Double-Slash in Permalink Problem

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Paul Brown

Posts: 284
Nickname: paulrbrown
Registered: Dec, 2003

Paul Brown is an entrepreneur
Fixed Double-Slash in Permalink Problem Posted: Mar 7, 2004 2:03 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Paul Brown.
Original Post: Fixed Double-Slash in Permalink Problem
Feed Title: mult.ifario.us
Feed URL: http://feeds.feedburner.com/MultifariousCategoryJava
Feed Description: Software. Business. Java. XML. Web Services.
Latest Java Buzz Posts
Latest Java Buzz Posts by Paul Brown
Latest Posts From mult.ifario.us

Advertisement
Somewhere in a couple of configuration file changes for SnipSnap, URL rewriting changes on the Apache proxy, and restarts, I ended up with a doubled / in the middle of permalinks for this blog. Since the root URL (http:blog.fivesight.com/prb/) has a trailing slash, the apparent culprit was org.snipsnap.config.AppConfiguration#getURL(String), which simply appends paths like /exec/rss to the root, so I patched the source:public String getUrl(String target) { String s = getUrl(); if (s != null && s.endsWith("/") && target != null && target.startsWith("/")) { s = s.substring(0,s.length()-1); } return getUrl() + target; }and things should be back to normal other than people seeing a lot of falsely new posts.

Read: Fixed Double-Slash in Permalink Problem

Topic: Swing Action configuration goodness Previous Topic   Next Topic Topic: A Simple XWork example

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use