Redirects to the default wiki index name.
553729
def index(request):
    
    kwargs = {'slug': getattr(settings, 'WAKAWAKA_DEFAULT_INDEX', 'WikiIndex')}
    redirect_to = reverse('wakawaka_page', kwargs=kwargs)
    return HttpResponseRedirect(redirect_to)
97854
private function needsRedirect()
    {
        /** @var int|string $id */
        $id = $this->getRequest()->param('ID');
        /** @var string $action */
        $action = $this->getRequest()->param('Action');
        /** @var array $handlers */
        $handlers = self::$url_handlers;
        if (array_key_exists($action, $handlers) && $handlers[$action] === 'show' && !$news = $this->getNews()) {
            if ($id && is_numeric($id)) {
                /** @var News $redirect */
                $redirect = $this->Newsitems()->byId($id);
                $this->redirect($redirect->Link(), 301);
            } else {
                /** @var Renamed $renamed */
                $renamed = Renamed::get()->filter(array('OldLink' => $id));
                if ($renamed->count() > 0) {
                    $this->redirect($renamed->First()->News()->Link(), 301);
                } else {
                    $this->redirect($this->Link(), 404);
                }
            }
        } elseif ($action === 'latest') {
            /** @var News $item */
            $item = News::get()->filter(array('Live' => true))->first();
            $this->redirect($item->Link(), 302);
        }
    }
869248
def wiki_page(name, path = nil, version = nil, exact = true)
      wiki = wiki_new
      path = name if path.nil?
      name = extract_name(name) || wiki.index_page
      path = extract_path(path)
      path = '/' if exact && path.nil?

      OpenStruct.new(:wiki => wiki, :page => wiki.paged(name, path, exact, version),
                     :name => name, :path => path)
    end
968395
def get_top_level_forum_url(self):
        
        return (
            reverse('forum:index') if self.top_level_forum is None else
            reverse(
                'forum:forum',
                kwargs={'slug': self.top_level_forum.slug, 'pk': self.kwargs['pk']},
            )
        )
469482
public function actionIndex()
    {
        if (($model = Authentication::findOne(['user_id' => Yii::$app->user->id])) == null) {
            return $this->redirect(['create']);
        }
        return $this->render('index', [
            'model' => $model
        ]);
    }
671569
private void generateTemplateIndices(WikipediaTemplateInfo info,
			Set<String> templateNames)
	{
		try {
			for (String name : templateNames) {
				int id = info.checkTemplateId(name);
				if (id != -1) {
					tplNameToTplId.put(name, id);
				}
			}
		}
		catch (WikiApiException e) {

		}
	}
4659
private void updateIndexTermTargetName() {
        if (defaultTitle == null) {
            defaultTitle = targetFile;
        }
        for (final IndexTerm indexterm : indexTermList) {
            updateIndexTermTargetName(indexterm);
        }
    }
626524
def get_url_param(self, index, default=None):
        
        params = self.get_url_params()
        return params[index] if index < len(params) else default
1120432
def import_wikilink(self, title, href, **attrs):
        
        return WikiLinks(self.requester).import_(self.id, title, href, **attrs)
246222
def _relIndexLink(self):
        """"""
        return os.path.join("..", os.path.basename(self.pathname), "index.html")
1206218
def get_redirect_url(self, **kwargs):
        
        entry = Entry.published.all().order_by('?')[0]
        return entry.get_absolute_url()
292674
def get_page(self, index=None):
        """"""
        if index is None:
            widget = self.pages_widget.currentWidget()
        else:
            widget = self.pages_widget.widget(index)
        return widget.widget()
1335781
public function index(HTTPRequest $request)
    {
        /** @var RedirectorPage $page */
        $page = $this->data();
        if (!$this->getResponse()->isFinished() && $link = $page->redirectionLink()) {
            $this->redirect($link, 301);
        }
        return parent::handleAction($request, 'handleIndex');
    }
1265667
def _wiki_urls_for_shard(shard_id, urls_dir=None):
  """"""
  urls_dir = urls_dir or WIKI_URLS_DIR
  urls_filepath = os.path.join(urls_dir, WIKI_URLS_FILE % shard_id)
  with tf.gfile.GFile(urls_filepath) as f:
    return json.loads(f.read())
651336
def resource_redirect(id):
    '''
    
    '''
    resource = get_resource(id)
    return redirect(resource.url.strip()) if resource else abort(404)
660718
function redirect() {
    l.replace(l.protocol + '//' + l.hostname + (l.port ? ':' + l.port : '') + repo + '/?' +
      (l.pathname ? 'p=' + l.pathname.replace(/&/g, '~and~').replace(repo, '') : '') +
      (l.search ? '&q=' + l.search.slice(1).replace(/&/g, '~and~') : '') +
      (l.hash))
  }
251840
public function redirectToDefault() {
		
		$app	 = Application::getInstance();
		$router	 = Router::getInstance();
		$landing = $this->getLanding();
	
		$app->redirect($landing->module . '/' . $landing->action);
		
	}